tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mediasource-encrypted-webcodecs-appendencodedchunks-play.https.html (1066B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>Test encoded chunk buffering and playback with EME + MediaSource</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/encrypted-media/util/utf8.js"></script>
      7 <script src="/encrypted-media/util/utils.js"></script>
      8 <script src="/encrypted-media/util/clearkey-messagehandler.js"></script>
      9 <script src="media-source-webcodecs-util.js"></script>
     10 <script>
     11 setup(() => {
     12  assert_implements(
     13      SourceBuffer.prototype.hasOwnProperty('appendEncodedChunks'),
     14      'SourceBuffer prototype hasOwnProperty "appendEncodedChunks", used ' +
     15          'here to feature detect MSE-for-WebCodecs implementation.');
     16 });
     17 
     18 promise_test(async t => {
     19  return runEncryptedChunksTest(t);
     20 }, "Buffer encrypted EncodedVideoChunks (VP9) one-by-one and play them with MSE");
     21 
     22 // TODO(crbug.com/1144908): More exhaustive tests (multiple sourcebuffers,
     23 // varying append patterns, invalid append patterns; eventually more codecs,
     24 // out-of-order DTS, durations, etc.)
     25 
     26 </script>
     27 </html>