webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
webrtc::VideoTrack Class Reference

#include <videotrack.h>

Inheritance diagram for webrtc::VideoTrack:
webrtc::MediaStreamTrack< VideoTrackInterface > rtc::VideoSourceBase webrtc::ObserverInterface webrtc::MediaStreamTrack< VideoTrackInterface > rtc::VideoSourceBase webrtc::ObserverInterface rtc::VideoSourceInterface< webrtc::VideoFrame > rtc::VideoSourceInterface< webrtc::VideoFrame > webrtc::Notifier< VideoTrackInterface > webrtc::Notifier< VideoTrackInterface > rtc::VideoSourceInterface< webrtc::VideoFrame > rtc::VideoSourceInterface< webrtc::VideoFrame > webrtc::Notifier< VideoTrackInterface > webrtc::Notifier< VideoTrackInterface >

Public Member Functions

void AddOrUpdateSink (rtc::VideoSinkInterface< VideoFrame > *sink, const rtc::VideoSinkWants &wants) override
 
void RemoveSink (rtc::VideoSinkInterface< VideoFrame > *sink) override
 
VideoTrackSourceInterfaceGetSource () const override
 
ContentHint content_hint () const override
 
void set_content_hint (ContentHint hint) override
 
bool set_enabled (bool enable) override
 
std::string kind () const override
 
void AddOrUpdateSink (rtc::VideoSinkInterface< VideoFrame > *sink, const rtc::VideoSinkWants &wants) override
 
void RemoveSink (rtc::VideoSinkInterface< VideoFrame > *sink) override
 
VideoTrackSourceInterfaceGetSource () const override
 
ContentHint content_hint () const override
 
void set_content_hint (ContentHint hint) override
 
bool set_enabled (bool enable) override
 
std::string kind () const override
 
- Public Member Functions inherited from webrtc::MediaStreamTrack< VideoTrackInterface >
std::string id () const override
 
std::string id () const override
 
MediaStreamTrackInterface::TrackState state () const override
 
MediaStreamTrackInterface::TrackState state () const override
 
bool enabled () const override
 
bool enabled () const override
 
bool set_enabled (bool enable) override
 
bool set_enabled (bool enable) override
 
- Public Member Functions inherited from webrtc::Notifier< VideoTrackInterface >
 Notifier ()
 
 Notifier ()
 
virtual void RegisterObserver (ObserverInterface *observer)
 
virtual void RegisterObserver (ObserverInterface *observer)
 
virtual void UnregisterObserver (ObserverInterface *observer)
 
virtual void UnregisterObserver (ObserverInterface *observer)
 
void FireOnChanged ()
 
void FireOnChanged ()
 
- Public Member Functions inherited from webrtc::VideoTrackInterface
void AddOrUpdateSink (rtc::VideoSinkInterface< VideoFrame > *, const rtc::VideoSinkWants &) override
 
void RemoveSink (rtc::VideoSinkInterface< VideoFrame > *) override
 
void AddOrUpdateSink (rtc::VideoSinkInterface< VideoFrame > *, const rtc::VideoSinkWants &) override
 
void RemoveSink (rtc::VideoSinkInterface< VideoFrame > *) override
 
- Public Member Functions inherited from rtc::RefCountInterface
virtual int AddRef () const =0
 
virtual int Release () const =0
 
virtual int AddRef () const =0
 
virtual int Release () const =0
 
- Public Member Functions inherited from webrtc::NotifierInterface
virtual ~NotifierInterface ()
 
virtual ~NotifierInterface ()
 
- Public Member Functions inherited from rtc::VideoSourceInterface< VideoFrame >
virtual void AddOrUpdateSink (VideoSinkInterface< VideoFrame > *sink, const VideoSinkWants &wants)=0
 
virtual void AddOrUpdateSink (VideoSinkInterface< VideoFrame > *sink, const VideoSinkWants &wants)=0
 
virtual void RemoveSink (VideoSinkInterface< VideoFrame > *sink)=0
 
virtual void RemoveSink (VideoSinkInterface< VideoFrame > *sink)=0
 
- Public Member Functions inherited from rtc::VideoSourceBase
 VideoSourceBase ()
 
 VideoSourceBase ()
 

Static Public Member Functions

static rtc::scoped_refptr< VideoTrackCreate (const std::string &label, VideoTrackSourceInterface *source)
 
static rtc::scoped_refptr< VideoTrackCreate (const std::string &label, VideoTrackSourceInterface *source)
 

Protected Member Functions

 VideoTrack (const std::string &id, VideoTrackSourceInterface *video_source)
 
 ~VideoTrack ()
 
 VideoTrack (const std::string &id, VideoTrackSourceInterface *video_source)
 
 ~VideoTrack ()
 
- Protected Member Functions inherited from webrtc::MediaStreamTrack< VideoTrackInterface >
 MediaStreamTrack (const std::string &id)
 
 MediaStreamTrack (const std::string &id)
 
bool set_state (MediaStreamTrackInterface::TrackState new_state)
 
bool set_state (MediaStreamTrackInterface::TrackState new_state)
 
- Protected Member Functions inherited from webrtc::VideoTrackInterface
virtual ~VideoTrackInterface ()
 
virtual ~VideoTrackInterface ()
 
- Protected Member Functions inherited from webrtc::MediaStreamTrackInterface
virtual ~MediaStreamTrackInterface ()
 
virtual ~MediaStreamTrackInterface ()
 
- Protected Member Functions inherited from rtc::RefCountInterface
virtual ~RefCountInterface ()
 
virtual ~RefCountInterface ()
 
- Protected Member Functions inherited from rtc::VideoSourceInterface< VideoFrame >
virtual ~VideoSourceInterface ()
 
virtual ~VideoSourceInterface ()
 
- Protected Member Functions inherited from rtc::VideoSourceBase
SinkPairFindSinkPair (const VideoSinkInterface< webrtc::VideoFrame > *sink)
 
const std::vector< SinkPair > & sink_pairs () const
 
SinkPairFindSinkPair (const VideoSinkInterface< webrtc::VideoFrame > *sink)
 
const std::vector< SinkPair > & sink_pairs () const
 
- Protected Member Functions inherited from rtc::VideoSourceInterface< webrtc::VideoFrame >
virtual ~VideoSourceInterface ()
 
virtual ~VideoSourceInterface ()
 
- Protected Member Functions inherited from webrtc::ObserverInterface
virtual ~ObserverInterface ()
 
virtual ~ObserverInterface ()
 

Additional Inherited Members

- Public Types inherited from webrtc::MediaStreamTrack< VideoTrackInterface >
typedef VideoTrackInterface ::TrackState TypedTrackState
 
typedef VideoTrackInterface ::TrackState TypedTrackState
 
- Public Types inherited from webrtc::VideoTrackInterface
enum  ContentHint {
  ContentHint::kNone, ContentHint::kFluid, ContentHint::kDetailed, ContentHint::kNone,
  ContentHint::kFluid, ContentHint::kDetailed
}
 
enum  ContentHint {
  ContentHint::kNone, ContentHint::kFluid, ContentHint::kDetailed, ContentHint::kNone,
  ContentHint::kFluid, ContentHint::kDetailed
}
 
- Public Types inherited from webrtc::MediaStreamTrackInterface
enum  TrackState { kLive, kEnded, kLive, kEnded }
 
enum  TrackState { kLive, kEnded, kLive, kEnded }
 
- Static Public Attributes inherited from webrtc::MediaStreamTrackInterface
static const char kAudioKind [] = "audio"
 
static const char kVideoKind [] = "video"
 
- Protected Attributes inherited from webrtc::Notifier< VideoTrackInterface >
std::list< ObserverInterface *> observers_
 
- Protected Attributes inherited from rtc::VideoSourceBase
ThreadChecker thread_checker_
 

Constructor & Destructor Documentation

◆ VideoTrack() [1/2]

VideoTrack::VideoTrack ( const std::string id,
VideoTrackSourceInterface video_source 
)
protected

◆ ~VideoTrack() [1/2]

VideoTrack::~VideoTrack ( )
protected

◆ VideoTrack() [2/2]

webrtc::VideoTrack::VideoTrack ( const std::string id,
VideoTrackSourceInterface video_source 
)
protected

◆ ~VideoTrack() [2/2]

webrtc::VideoTrack::~VideoTrack ( )
protected

Member Function Documentation

◆ AddOrUpdateSink() [1/2]

void VideoTrack::AddOrUpdateSink ( rtc::VideoSinkInterface< VideoFrame > *  sink,
const rtc::VideoSinkWants wants 
)
overridevirtual

Reimplemented from rtc::VideoSourceBase.

◆ AddOrUpdateSink() [2/2]

void webrtc::VideoTrack::AddOrUpdateSink ( rtc::VideoSinkInterface< VideoFrame > *  sink,
const rtc::VideoSinkWants wants 
)
overridevirtual

Reimplemented from rtc::VideoSourceBase.

◆ content_hint() [1/2]

VideoTrackInterface::ContentHint VideoTrack::content_hint ( ) const
overridevirtual

Reimplemented from webrtc::VideoTrackInterface.

◆ content_hint() [2/2]

ContentHint webrtc::VideoTrack::content_hint ( ) const
overridevirtual

Reimplemented from webrtc::VideoTrackInterface.

◆ Create() [1/2]

static rtc::scoped_refptr<VideoTrack> webrtc::VideoTrack::Create ( const std::string label,
VideoTrackSourceInterface source 
)
static

◆ Create() [2/2]

rtc::scoped_refptr< VideoTrack > VideoTrack::Create ( const std::string label,
VideoTrackSourceInterface source 
)
static

◆ GetSource() [1/2]

VideoTrackSourceInterface* webrtc::VideoTrack::GetSource ( ) const
inlineoverridevirtual

◆ GetSource() [2/2]

VideoTrackSourceInterface* webrtc::VideoTrack::GetSource ( ) const
inlineoverridevirtual

◆ kind() [1/2]

std::string VideoTrack::kind ( ) const
overridevirtual

◆ kind() [2/2]

std::string webrtc::VideoTrack::kind ( ) const
overridevirtual

◆ RemoveSink() [1/2]

void webrtc::VideoTrack::RemoveSink ( rtc::VideoSinkInterface< VideoFrame > *  sink)
overridevirtual

Reimplemented from rtc::VideoSourceBase.

◆ RemoveSink() [2/2]

void VideoTrack::RemoveSink ( rtc::VideoSinkInterface< VideoFrame > *  sink)
overridevirtual

Reimplemented from rtc::VideoSourceBase.

◆ set_content_hint() [1/2]

void webrtc::VideoTrack::set_content_hint ( ContentHint  hint)
overridevirtual

Reimplemented from webrtc::VideoTrackInterface.

◆ set_content_hint() [2/2]

void VideoTrack::set_content_hint ( ContentHint  hint)
overridevirtual

Reimplemented from webrtc::VideoTrackInterface.

◆ set_enabled() [1/2]

bool VideoTrack::set_enabled ( bool  enable)
overridevirtual

◆ set_enabled() [2/2]

bool webrtc::VideoTrack::set_enabled ( bool  enable)
overridevirtual

The documentation for this class was generated from the following files: