Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek test_SeekedEvent_mp4.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/media/mediasource/test/test_SeekedEvent_mp4.html


<!DOCTYPE HTML>
<html>
<head>
  <title>MSE: Check that seeked event is fired prior loadeddata</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="mediasource.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">

SimpleTest.waitForExplicitFinish();

runWithMSE(async (ms, el) => {
  el.controls = true;
  const events = ["seeked""loadeddata""playing"];
  let eventCount = 0;
  events.forEach(type => el.addEventListener(type,
      () => is(events[eventCount++], type, "events must come in order")));
  await once(ms, "sourceopen");
  ok(true, "Receive a sourceopen event");
  const videosb = ms.addSourceBuffer("video/mp4");
  is(el.readyState, el.HAVE_NOTHING, "readyState is HAVE_NOTHING");
  let p = once(el, "loadedmetadata");
  await fetchAndLoad(videosb, "bipbop/bipbop_video", ["init"], ".mp4");
  await p;
  el.play();
  videosb.timestampOffset = 2;
  is(el.readyState, el.HAVE_METADATA, "readyState is HAVE_METADATA");
  // Load [2, 3.606).
  p = once(el, "play");
  await fetchAndLoad(videosb, "bipbop/bipbop_video", ["1"], ".m4s");
  await p;
  await fetchAndLoad(videosb, "bipbop/bipbop_video", ["2"], ".m4s");
  // TODO: readyState should be at least HAVE_CURRENTDATA, see bug 1367993.
  ok(el.readyState >= el.HAVE_METADATA, "readyState is HAVE_METADATA");
  el.currentTime = 2;
  await Promise.all([once(el, "seeked"), once(el, "playing")]);
  ok(true, "completed seek");
  is(eventCount, events.length, "Received expected number of events");
  SimpleTest.finish();
});

</script>
</pre>
</body>
</html>

Messung V0.5
C=100 H=100 G=100

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge