#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 {
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) { … }
}
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 { … }
}