videojs-contrib-eme icon indicating copy to clipboard operation
videojs-contrib-eme copied to clipboard

need better docs for widevine

Open ralyodio opened this issue 6 years ago • 3 comments

I've scoured the web and its my understanding that all I need to load is videojs-contrib-eme and videojs 7+.

I am loading my mpdurl and a license url but this doesn't seem to work. all the chunks return a 400 which makes me think the license url isn't being set properly.

    <script src="https://unpkg.com/video.js/dist/video.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/videojs-contrib-eme.min.js"></script>
    const player = videojs('video');
    player.eme();

    player.ready(function() {
        player.src({
            src: streamUrl,
            type: 'application/dash+xml',
            keySystems: {
                'com.widevine.alpha': {
                    url: licenseUrl
                }
            }
          });
        player.play();
    });

ralyodio avatar Dec 20 '18 07:12 ralyodio

Widevine should have no effect on delivery of chunks, only their decryption.

ziddey avatar Dec 24 '18 22:12 ziddey

I am testing Widevine and having issues its not working in Chrome but it is working in Firefox.

It may be related to this issue that I posted:

https://github.com/videojs/http-streaming/issues/332

I have tested here https://bitmovin.com/demos/drm and everything is working so not sure if its related to and issue loading the DASH manifest or it is a issue with this plugin.

My console is logging the following not sure if it helps. screenshot 2019-01-10 at 16 28 34

samueleastdev avatar Jan 10 '19 16:01 samueleastdev

Doesn't explain the 400 errors, but the keySystems object should be like this:

  keySystems: {
    'com.widevine.alpha': '<your url here>'
  }

mahogben avatar Jan 24 '19 00:01 mahogben