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

[Question] Can custom license functionality be handled using videojs-contrib-dash?

Open kirandcunha opened this issue 2 years ago • 4 comments

Description

Briefly describe the issue. Use a custom license functionality instead of passing just the license URL. I have been using inbuilt vhs of videojs 7.0 along with videojs-contrib-eme to successfully play a protected content with a custom license mechanism. videojs-contrib-eme provides getLicense method which helps us. I am trying to migrate to videojs-contrib-dash because of TTML captions support. After adding videojs-contrib-dash plugin, getLicense function is not getting invoked and there is an error [224][Stream] DRM: No license server URL specified!

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.

  1. Add videojs-contrib-dash and videojs-contrib-eme plugins.
  2. Play content which required a custom flow for license acquisition.

Results

Expected

Please describe what you expected to see. getLicense function does not get invoked.

Actual

Please describe what actually happened. getLicense function should get invoked and license should be fetched from here.

Error output

If there are any errors at all, please include them here. [224][Stream] DRM: No license server URL specified!

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

what version of videojs does this occur with? 7.14.3

browsers

what browser are affected? Chrome

OSes

what platforms (operating systems and devices) are affected? Windows

plugins

are any videojs plugins being used on the page? If so, please list them below. videojs-contrib-eme

kirandcunha avatar Sep 28 '21 10:09 kirandcunha

I don't think that this project works with contrib-eme. I believe everything is handled directly by DASH.js. I'm pretty sure that DASH.js has similar functionality, and if it does you'll probably need to configure it appropriately, see https://github.com/videojs/videojs-contrib-dash#initialization-hook.

gkatsev avatar Sep 28 '21 18:09 gkatsev

@gkatsev Thank you. Will check it out.

kirandcunha avatar Oct 01 '21 04:10 kirandcunha