25 std::unordered_set<HTMLVideoElement*> HTMLVideoElement::g_video_elements_;
33 g_video_elements_.insert(
this);
37 HTMLVideoElement::~HTMLVideoElement() {
38 g_video_elements_.erase(
this);
43 return *g_video_elements_.begin();
47 if (g_video_elements_.empty())
49 return (*g_video_elements_.begin())->
player_;
57 ret.totalVideoFrames = temp.total_video_frames;
58 ret.droppedVideoFrames = temp.dropped_video_frames;
59 ret.corruptedVideoFrames = temp.corrupted_video_frames;
66 AddMemberFunction(
"getVideoPlaybackQuality",
#define END_ALLOW_COMPLEX_STATICS
static media::MediaPlayer * AnyMediaPlayer()
ExceptionOr< VideoPlaybackQuality > GetVideoPlaybackQuality() const
#define BEGIN_ALLOW_COMPLEX_STATICS
static RefPtr< HTMLVideoElement > AnyVideoElement()
HTMLVideoElementFactory()
END_ALLOW_COMPLEX_STATICS DEFINE_STRUCT_SPECIAL_METHODS_COPYABLE(VideoPlaybackQuality)
HTMLVideoElement(RefPtr< dom::Document > document, media::MediaPlayer *player)