Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/drivers/gpu/drm/amd/amdkfd/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 36 kB image not shown  

Quellcode-Bibliothek file_media_session.html   Sprache: unbekannt

 
<!DOCTYPE html>
<html>
<head>
 <title>Media Session and non-autoplay media</title>
</head>
<body>
<video id="testVideo" src="gizmo.mp4" loop></video>
<h1 id="result"></h1>
<script type="text/javascript">

const MediaSessionActions = [
  "play",
  "pause",
  "seekbackward",
  "seekforward",
  "previoustrack",
  "nexttrack",
  "stop",
];

for (const action of MediaSessionActions) {
  navigator.mediaSession.setActionHandler(action, () => {
    document.getElementById("result").innerHTML = action;
    document.getElementById("result").dispatchEvent(new CustomEvent("actionChanged"));
  });
}

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

Messung V0.5
C=96 H=92 G=93

[ 0.11Quellennavigators  Projekt   ]