videojs / videojs-contrib-eme

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

Question: is it possible to detect when content protection (black video with audio) has kicked in? #148

Open nick-myers-dt opened 2 years ago

nick-myers-dt commented 2 years ago

We have some users who try and play video over WiFi projectors, and they get the black video with audio playing due to content protection, we wondered if it was possible to detect when this protection has kicked in, so that we can display a user-friendly message?

benesva4 commented 2 years ago

Hey, there should be something like tech_.on('keystatuschange', (e) => {}) in that e.target should be something like a status property or something. Give it a try. edit: it's tech.on, not tech.vsh.on