blob: e0277be55792c36b63de0fa1c85e3fd3a26f2470 [file] [log] [blame]
RUN(internals.setMediaSessionRestrictions("videoaudio", ""))
RUN(video.src = findMediaFile("video", "content/test"))
EVENT(canplaythrough)
RUN(video.play())
EVENT(playing)
RUN(internals.applicationWillBecomeInactive())
EXPECTED (video.paused == 'false') OK
RUN(internals.setMediaSessionRestrictions("videoaudio", "inactiveprocessplaybackrestricted"))
RUN(internals.applicationWillBecomeInactive())
EVENT(pause)
RUN(internals.applicationDidBecomeActive())
EVENT(playing)
END OF TEST