-
jer.noble@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=103751 Reviewed by Eric Carlson. Source/WebCore: The MediaController spec has been updated to add an unpause() method which is functionally identical to the old play() method, and changes the semantics of play() to call play() on the underlying slaved media elements. The spec also added a playbackState() method, returning a string representing the last calculated playback state. Test: media/media-controller-unpause.html * html/MediaController.cpp: (MediaController::unpause): Renamed from play(). (MediaController::play): Added. Same as unpause(), but also call play() on slaved media elements. (playbackStateWaiting): Static string accessor. (playbackStatePlaying): Ditto. (playbackStateEnded): Ditto. (MediaController::playbackState): Added. Returns string value of m_playbackState. * html/MediaController.h: * html/MediaController.idl: LayoutTests: Add new test for unpause() and playbackState() methods. * media/media-controller-unpause.html: * media/media-controller-unpause-expected.txt: * media/media-controller-playback.html: * media/media-controller-playback-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
53ef8c93