chromium/third_party/blink/renderer/modules/mediastream/media_stream_video_sink.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/public/web/modules/mediastream/media_stream_video_sink.h"

#include "third_party/blink/renderer/modules/mediastream/media_stream_video_track.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_component.h"

namespace blink {

namespace {

// Calls to these methods must be done on the main render thread.
// Note that |callback| for frame delivery happens on the video task runner.
// Warning: Calling RemoveSinkFromMediaStreamTrack does not immediately stop
// frame delivery through the |callback|, since frames are being delivered on
// a different thread.
// |is_sink_secure| indicates if |sink| meets output protection requirement.
// Generally, this should be false unless you know what you are doing.
void AddSinkToMediaStreamTrack(const WebMediaStreamTrack& track,
                               WebMediaStreamSink* sink,
                               const VideoCaptureDeliverFrameCB& callback,
                               MediaStreamVideoSink::IsSecure is_secure,
                               MediaStreamVideoSink::UsesAlpha uses_alpha) {}

void RemoveSinkFromMediaStreamTrack(const WebMediaStreamTrack& track,
                                    WebMediaStreamSink* sink) {}
}  // namespace

MediaStreamVideoSink::MediaStreamVideoSink() :{}

MediaStreamVideoSink::~MediaStreamVideoSink() {}

void MediaStreamVideoSink::ConnectToTrack(
    const WebMediaStreamTrack& track,
    const VideoCaptureDeliverFrameCB& callback,
    MediaStreamVideoSink::IsSecure is_secure,
    MediaStreamVideoSink::UsesAlpha uses_alpha) {}

void MediaStreamVideoSink::ConnectEncodedToTrack(
    const WebMediaStreamTrack& track,
    const EncodedVideoFrameCB& callback) {}

void MediaStreamVideoSink::DisconnectFromTrack() {}

void MediaStreamVideoSink::DisconnectEncodedFromTrack() {}

void MediaStreamVideoSink::OnFrameDropped(
    media::VideoCaptureFrameDropReason reason) {}

double MediaStreamVideoSink::GetRequiredMinFramesPerSec() const {}

}  // namespace blink