The Wayback Machine - https://web.archive.org/web/20200705021048/https://github.com/video-dev/hls.js/issues/2016
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document DRM usage #2016

Open
stefanovualto opened this issue Nov 27, 2018 · 4 comments
Open

Document DRM usage #2016

stefanovualto opened this issue Nov 27, 2018 · 4 comments

Comments

@stefanovualto
Copy link

@stefanovualto stefanovualto commented Nov 27, 2018

What do you want to do with Hls.js?
I want to use hlsjs with DRM (widevine, and maybe others if available), but I was not able to any documentation around how to do it.

What have you tried so far?
to set the following config properties:

  • widevineLicenseUrl: this.drmProviders.widevine
  • emeEnabled: true

But I need to modify the license request to inject our specific token.

@stefanovualto
Copy link
Author

@stefanovualto stefanovualto commented Nov 28, 2018

I will be happy to help to do it, but I don't know where to start.

@htleeab
Copy link

@htleeab htleeab commented Dec 5, 2018

Did you try licenseXhrSetup?
In the config, set licenseXhrSetup = function(xhr, url){/inject token to xhr/}

@stefanovualto
Copy link
Author

@stefanovualto stefanovualto commented Jan 2, 2019

Thank you @htleeab , sorry for the delay.

Actually even if I configure the widevineLicenseUrl I keep havinf requests to the fairplay licence server configured in the manifest. 🤔 And I never reach the licenseXhrSetup function.

Is there an example of the widevine licence usage?

@realeyes-matthew realeyes-matthew mentioned this issue Mar 7, 2019
1 of 3 tasks complete
@realeyes-matthew realeyes-matthew mentioned this issue Mar 26, 2019
3 of 3 tasks complete
@iambumblehead
Copy link

@iambumblehead iambumblehead commented Mar 22, 2020

Bump. If one searches google or the issue list here for widevineLicenseUrl or getEMELicenseFunc there are only a few not-useful links.

The best information I've found so far is here: https://github.com/realeyes-matthew/hls.js/blob/widevine-eme/docs/API.md#encypted-media-extensions-eme

and here in the shaka packager demo https://hls-js.netlify.com/demo/ (the shaka demo does not play for me in Firefox or Chrome btw)

{
  "debug": true,
  "enableWorker": true,
  "liveBackBufferLength": 900,
  "widevineLicenseUrl": "http://cwip-shaka-proxy.appspot.com/no_auth",
  "emeEnabled": true
}

I did not find getEMELicenseFunc in the origin hls.js sources so I'm not too certain about them. A sample configuration from a player instance using it would be valuable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.