test_WMFUnmatchedAudioDataTime.html (1036B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>MSE: audio output time doesn't match the input time on WMF</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <script type="text/javascript" src="mediasource.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 8 </head> 9 <body> 10 <script class="testbody" type="text/javascript"> 11 12 SimpleTest.waitForExplicitFinish(); 13 14 runWithMSE(async (ms, v) => { 15 await once(ms, "sourceopen"); 16 const sb = ms.addSourceBuffer('audio/mp4;codecs=" mp4a.40.2"'); 17 sb.appendBuffer(new Uint8Array(await fetchWithXHR("wmf_mismatchedaudiotime.mp4"))); 18 ok(true, "appended data"); 19 20 info(`if error doesn't occur, we should be able to receive 'seeked', otherwise 'error' would be dispatched`); 21 v.currentTime = 22.05; 22 ok(await Promise.race([ 23 once(v, "seeked").then(_ => true), 24 once(v, "error").then(_ => false), 25 ]), "finished seeking without any error"); 26 ok(!v.error, "should not get any error"); 27 SimpleTest.finish(); 28 }); 29 30 </script> 31 </body> 32 </html>