videojs / videojs-contrib-eme

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

Trigger key status changes on player tech #42

Closed squarebracket closed 6 years ago

squarebracket commented 6 years ago

Some DRM configurations will block or downscale output when trying to play. With this change, such restrictions can be handled on-the-fly by the player and take appropriate action.

I was debating triggering only events for output-restricted and output-downscaled statuses, but I think it makes more sense to just keep it generic. That way any future extensions won't need code additions.

Also added a missing TOC entry.

squarebracket commented 6 years ago

Changed to use eventBus for all the things