videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
203 stars 72 forks source link

custom request body for PlayReady DRM service using videojs-contrib-eme #38

Closed subhranshudas closed 6 years ago

subhranshudas commented 6 years ago

Hi, Is there any way to customize the request body & request headers we send using both player options and source for the DRM service, specifically PlayReady? Thanks.

gesinger commented 6 years ago

Hey @subhranshudas , yes, it is possible to have completely custom requests by implementing the methods shown in https://github.com/videojs/videojs-contrib-eme#other-drm-systems . Please let us know if you have any more questions. Thank you.

subhranshudas commented 6 years ago

@gesinger Hi thanks for the reply, actually i had gone through https://github.com/videojs/videojs-contrib-eme#playready-for-ie11-windows-81 But i could not understand where to pass the custom request body and request headers in keySystems: { "com.microsoft.playready": "<your url here>" } // or keySystems: { "com.microsoft.playready": { "url": "<your url here>" } }

Because in dash.js, whatever you pass in the httpRequestHeaders will be passed as request headers so in videojs-contrib-eme whats the way to pass custom request headers and request body.

If you can illustrate with a snippet.

Thanks.