blob: 063e5edf42db9756e978591f3fba65239ddee26f [file] [log] [blame]
RUN(video.src = findMediaFile("video", "content/test"))
EVENT(canplaythrough)
RUN(video.play())
EVENT(playing)
RUN(internals.setMediaSessionRestrictions("videoaudio", "suspendedunderlockplaybackrestricted"))
RUN(internals.applicationDidEnterBackground(true))
EVENT(pause)
RUN(internals.applicationWillEnterForeground(true))
EVENT(playing)
RUN(internals.setIsPlayingToAutomotiveHeadUnit(true))
RUN(internals.applicationDidEnterBackground(true))
EXPECTED (video.paused == 'false') OK
END OF TEST