blob: c757267ffa3c2c706f788f4c10ecce717deba418 [file] [log] [blame]
Test play() when concurrent playback not allowed.
RUN(internals.setMediaSessionRestrictions('videoaudio', '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