blob: 254c01e03ad9d69f842dbe71c9601df4ca275d9a [file] [log] [blame]
Test that a remote control command is treated as a user gesture.
RUN(internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange"))
* set video.src
EVENT(loadedmetadata)
* video.play() should fail
RUN(handlePromise(video.play()))
EXPECTED (video.paused == 'true') OK
* Send a play command, it should succeed.
RUN(internals.postRemoteControlCommand('play'))
EVENT(timeupdate)
END OF TEST