VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. hello

    anyone know any online drm video player with support for multi decryption keys ?

    all online drm players i know only support single keyid:key
    Quote Quote  
  2. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Use shaka-player js lib.
    Quote Quote  
  3. HTML Code:
    <html>
    
    <head>
    
    <script src="https://ajax.googleapis.com/ajax/libs/shaka-player/3.2.0/shaka-player.compiled.js"></script>
      <!-- or, for UI builds: -->
      <script src="https://ajax.googleapis.com/ajax/libs/shaka-player/3.2.0/shaka-player.ui.js"></script>
      <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/shaka-player/3.2.0/controls.css">
    <script>
    const manifestUri =
      "https://live2.shoq.com.pk/live/eds/Geo_Super/DASH/Geo_Super.mpd";
    async function init() {
      const video = document.getElementById("video");
      const ui = video["ui"];
      const controls = ui.getControls();
      const player = controls.getPlayer();
      player.configure({
        drm: {
          clearKeys: {
            "7641daa5bacfbb61936c40a221c9e78e": "5732dd242f28338e909dc06cb1a1e5a2"
          }
        }
      });
    
      window.player = player;
      window.ui = ui;
    
      player.addEventListener("error", onPlayerErrorEvent);
      controls.addEventListener("error", onUIErrorEvent);
      try {
        await player.load(manifestUri);
        console.log("The video has now been loaded!");
      } catch (error) {
        onPlayerError(error);
      }
    }
    
    function onPlayerErrorEvent(errorEvent) {
      onPlayerError(event.detail);
    }
    
    function onPlayerError(error) {
      console.error("Error code", error.code, "object", error);
    }
    
    function onUIErrorEvent(errorEvent) {
      onPlayerError(event.detail);
    }
    
    function initFailed(errorEvent) {
      console.error("Unable to load the UI library!");
    }
    document.addEventListener("shaka-ui-loaded", init);
    document.addEventListener("shaka-ui-load-failed", initFailed);
    </script>
    </head>
    
    <body>
      <center>
        <div data-shaka-player-container style="max-width:40em;height:100%" data-shaka-player-cast-receiver-id="1BA79154">
    
          <video autoplay data-shaka-player id="video" style="width:100%;height:100%"></video>
        </div>
      </center>
    
    </body>
    
    </html>
    discord=notaghost9997
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!