videojs / videojs-contrib-eme

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

Error on PlayReady: "plugin "eme" does not exist" #94

Closed nskhara closed 4 years ago

nskhara commented 5 years ago

Hello.

When trying PlayReady on Windows 10 Edge/IE11, an error appears in the console.

plugin "eme" does not exist

I can't figure out what the problem is though do you have any idea?

Below is the html I am using (in text file). index.txt

Currently, this is as far as I know.

  1. License request will be thrown and succeeds but it will not start playback.
  2. When I delete "data-setup='{"plugins": {"eme": {}}}'" on the video tag, the error disappears, though it will not start playback.(License request will succeed)

NOTE: The code works fine when executing on Chrome+Widevine.

molten-firescar96 commented 4 years ago

Make sure to import the plugin first. Either import it into your html file using a src tag. Or add import videojs-contrib-eme to your javascript.

gkatsev commented 4 years ago

Basically, remove the data-setup attribute and instead call eme() manually, or pass the {plugins: {eme: {}}} options to videojs().