blob: 9dbd338e9f3b60befbc80ee45f55c96d7d352a37 [file] [edit]
Check that an opus file made of two concatenated segments, one encoded with 40ms packets and the other 20ms can play continously.
EXPECTED (audio.canPlayType('audio/webm; codecs=opus') == 'probably') OK
RUN(audio.src = "content/opus_variable.webm")
EVENT(loadedmetadata)
EXPECTED (audio.duration >= '0.98') OK
RUN(audio.play())
EVENT(ended)
EXPECTED (audio.currentTime >= '0.98') OK
END OF TEST