Lines Matching defs:MediaController
27 #include "core/html/MediaController.h"
45 PassRefPtrWillBeRawPtr<MediaController> MediaController::create(ExecutionContext* context)
47 return adoptRefWillBeRefCountedGarbageCollected(new MediaController(context));
50 MediaController::MediaController(ExecutionContext* context)
59 , m_clearPositionTimer(this, &MediaController::clearPositionTimerFired)
62 , m_timeupdateTimer(this, &MediaController::timeupdateTimerFired)
68 MediaController::~MediaController()
72 void MediaController::addMediaElement(HTMLMediaElement* element)
81 void MediaController::removeMediaElement(HTMLMediaElement* element)
88 PassRefPtr<TimeRanges> MediaController::buffered() const
103 PassRefPtr<TimeRanges> MediaController::seekable() const
118 PassRefPtr<TimeRanges> MediaController::played()
133 double MediaController::duration() const
147 double MediaController::currentTime() const
161 void MediaController::setCurrentTime(double time, ExceptionState& exceptionState)
183 void MediaController::unpause()
185 // When the unpause() method is invoked, if the MediaController is a paused media controller,
189 // the user agent must change the MediaController into a playing media controller,
191 // queue a task to fire a simple event named play at the MediaController,
193 // and then report the controller state of the MediaController.
197 void MediaController::play()
204 // and then invoke the unpause method of the MediaController.
208 void MediaController::pause()
210 // When the pause() method is invoked, if the MediaController is a playing media controller,
214 // then the user agent must change the MediaController into a paused media controller,
216 // queue a task to fire a simple event named pause at the MediaController,
218 // and then report the controller state of the MediaController.
222 void MediaController::setDefaultPlaybackRate(double rate)
227 // The defaultPlaybackRate attribute, on setting, must set the MediaController's media controller
231 // then queue a task to fire a simple event named ratechange at the MediaController.
235 double MediaController::playbackRate() const
240 void MediaController::setPlaybackRate(double rate)
245 // The playbackRate attribute, on setting, must set the MediaController's media controller
252 // then queue a task to fire a simple event named ratechange at the MediaController.
256 void MediaController::setVolume(double level, ExceptionState& exceptionState)
269 // must set the MediaController's media controller volume multiplier to the new value
272 // and queue a task to fire a simple event named volumechange at the MediaController.
279 void MediaController::setMuted(bool flag)
284 // The muted attribute, on setting, must set the MediaController's media controller mute override
288 // and queue a task to fire a simple event named volumechange at the MediaController.
313 const AtomicString& MediaController::playbackState() const
328 void MediaController::reportControllerState()
353 void MediaController::updateReadyState()
359 // If the MediaController has no slaved media elements, let new readiness state be 0.
373 // If the MediaController's most recently reported readiness state is greater than new readiness
374 // state then queue a task to fire a simple event at the MediaController object, whose name is the
381 // If the MediaController's most recently reported readiness state is less than the new readiness
383 // 1. Let next state be the MediaController's most recently reported readiness state.
388 // 3. Queue a task to fire a simple event at the MediaController object, whose name is the
394 // Let the MediaController's most recently reported readiness state be new readiness state.
398 void MediaController::updatePlaybackState()
406 // If the MediaController has no slaved media elements
410 // If all of the MediaController's slaved media elements have ended playback and the media
415 // If the MediaController is a blocked media controller
424 // If the MediaController's most recently reported playback state is not equal to new playback state
430 // then queue a task that, if the MediaController object is a playing media controller, and
431 // all of the MediaController's slaved media elements have still ended playback, and the
434 // changes the MediaController object to a paused media controller
437 MediaController object.
442 // If the MediaController's most recently reported playback state is not equal to new playback state
443 // then queue a task to fire a simple event at the MediaController object, whose name is playing
467 // Let the MediaController's most recently reported playback state be new playback state.
473 void MediaController::updateMediaElements()
479 void MediaController::bringElementUpToSpeed(HTMLMediaElement* element)
485 // it must seek that media element to the MediaController's media controller position relative
490 bool MediaController::isRestrained() const
494 // A MediaController is a restrained media controller if the MediaController is a playing media
521 bool MediaController::isBlocked() const
525 // A MediaController is a blocked media controller if the MediaController is a paused media
551 bool MediaController::hasEnded() const
557 // [and] all of the MediaController's slaved media elements have ended playback ... let new
570 void MediaController::scheduleEvent(const AtomicString& eventName)
575 void MediaController::clearPositionTimerFired(Timer<MediaController>*)
580 const AtomicString& MediaController::interfaceName() const
582 return EventTargetNames::MediaController;
589 void MediaController::startTimeupdateTimer()
597 void MediaController::timeupdateTimerFired(Timer<MediaController>*)
602 void MediaController::scheduleTimeupdateEvent()
614 void MediaController::trace(Visitor* visitor)