blob: 4baf6c1ba51d9eea78eb34d37b03660e56667bc5 [file] [log] [blame]
Test play() when concurrent playback not allowed.
RUN(internals.setMediaSessionRestrictions('video', 'ConcurrentPlaybackNotPermitted'))
EVENT(canplaythrough)
EVENT(canplaythrough)
** Play first video...
RUN(videos[0].play())
EVENT(playing)
** Starting the second video, the first one should pause.
RUN(videos[1].play())
EVENT(playing)
EXPECTED (videos[0].paused == 'true') OK
EXPECTED (videos[1].paused == 'false') OK
END OF TEST