blob: d3fb814c59fde60feb8d5e2dea48196956d7b0a7 [file] [log] [blame]
RUN(internals.setMediaSessionRestrictions("videoaudio", "InterruptedPlaybackNotPermitted"))
RUN(video.src = findMediaFile("video", "content/test"))
EXPECTED (video.paused == 'true') OK
RUN(internals.beginMediaSessionInterruption("System"))
RUN(video.play().then(didResolvePromise).catch(didRejectPromise))
RUN(internals.endMediaSessionInterruption("MayResumePlaying"))
Promise resolved. OK
EXPECTED (video.paused == 'false') OK
END OF TEST