videojs / videojs-contrib-eme

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

refactor: add support for future Video.js 8.x #172

Closed misteroneill closed 2 years ago

misteroneill commented 2 years ago

This library was using videojs.mergeOptions which will be deprecated in 8.0. This adds code to normalize between Video.js 6.x/7.x (using videojs.mergeOptions) and 8.x (using videojs.obj.merge).

Also, this removes the fallback on videojs.plugin() because that was replaced in either 5.x or 6.x with videojs.registerPlugin(). Either way, it wasn't needed.