blob: 9ea07551e2a8494ae2964c50de326a45b879f6d2 [file] [log] [blame]
RUN(internals.settings.setShouldManageAudioSessionCategory(true))
RUN(video.src = findMediaFile("video", "../../../media/content/test"))
RUN(video.play())
EVENT(playing)
EXPECTED (internals.audioSessionCategory() == 'MediaPlayback') OK
RUN(video.pause())
EVENT(pause)
EXPECTED (internals.audioSessionCategory() == 'MediaPlayback') OK
RUN(internals.beginMediaSessionInterruption("system"))
EXPECTED (internals.audioSessionCategory() == 'None') OK
RUN(video.play())
EVENT(playing)
EXPECTED (internals.audioSessionCategory() == 'MediaPlayback') OK
RUN(video.src = "")
RUN(video.load())
EXPECTED (internals.audioSessionCategory() == 'None') OK
END OF TEST