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


Quelle  file_eme_createMediaKeys.html   Sprache: HTML

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


<!DOCTYPE html>
<html>
<head>
<title>Eme createMediaKeys helper page</title>
<script>
// This script waits for a message then attempts to requestMediaKeySystemAccess
// then createMediaKeys. On success posts 'successCreatingMediaKeys' to the
// source of the message, on failure posts 'failureCreatingMediaKeys' and a
// description of the failure to the source of the message.

async function createMediaKeys() {
  const clearKeyOptions = [
    {
      initDataTypes: ["webm"],
      videoCapabilities: [{ contentType: 'video/webm; codecs="vp9"' }],
    },
  ];

  let access = await navigator.requestMediaKeySystemAccess(
    "org.w3.clearkey",
    clearKeyOptions
  );

  return access.createMediaKeys();
}
function setupMessageListener() {
  window.onmessage = async event => {
    // We don't bother checking the message data since it should always be
    // telling us to create media keys.
    try {
      let keys = await createMediaKeys();
      if (!keys) {
        event.source.postMessage("failureCreatingMediaKeys no keys""*");
        return;
      }
      event.source.postMessage("successCreatingMediaKeys""*");
    } catch (e) {
      event.source.postMessage(`failureCreatingMediaKeys ${e}`, "*");
    }
  };
}
window.onload = setupMessageListener;
</script>
</head>
<body>
</body>
</html>

Messung V0.5
C=97 H=93 G=94

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






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