blob: ba95d06854b719e50dcd52d1bab6214fe53e5deb [file] [log] [blame]
RUN(internals.settings.setShouldDeactivateAudioSession(true))
RUN(video = document.querySelector("video"))
RUN(video.src = findMediaFile("video", "../../../media/content/test"))
RUN(video.play())
EVENT(playing)
EXPECTED (internals.audioSessionActive() == 'true') OK
RUN(internals.processWillSuspend())
EXPECTED (internals.audioSessionActive() == 'false') OK
RUN(internals.processDidResume())
EXPECTED (internals.audioSessionActive() == 'true') OK
END OF TEST