videojs / videojs-contrib-eme

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

TypeError: player.eme is not a function #216

Open davitsargsyan92 opened 4 months ago

davitsargsyan92 commented 4 months ago

Hello Everyone . Can someone please provide proper example how to setup with videojs properly ?

I get this error TypeError: player.eme is not a function

davitsargsyan92 commented 4 months ago

I want to add DRM configuration for HLS streams

alexlol76 commented 4 months ago

Hi! In my case it works like this:

import videojs from 'video.js';
import videojsContribEme from 'videojs-contrib-eme';
...
videojs.registerPlugin('eme', videojsContribEme);