Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No video playback for Fairplay protected content when using AirPlay #177

Closed
cfra opened this issue Oct 14, 2022 · 1 comment
Closed

No video playback for Fairplay protected content when using AirPlay #177

cfra opened this issue Oct 14, 2022 · 1 comment

Comments

@cfra
Copy link

cfra commented Oct 14, 2022

I have added AirPlay support to my video player using @silvermine/videojs-airplay.

While this works well with non-protected videos, this fails when I am playing back protected videos (HLS with FairPlay).

Looking at shaka-project/shaka-player#2177 it seems like it's the responsibility of the CDM in the browser to supply the key that is needed by the AppleTV to play back the content, and in my case, videojs-contrib-eme is failing to provide it.

I am not sure where it is failing though. I have added some instrumentation to the event handlers for the encrypted event and the webkitneedkey event, and I don't see any of these events being triggered when switching playback to AirPlay.

@cfra
Copy link
Author

cfra commented Oct 31, 2022

It turns out this issue was related to the way I had configured the video.js player.

Apparently, to support AirPlay for encrypted content properly, the overrideNative options of the http streaming module must not be used and Safari's native HLS implementation needs to be used instead.

Once the native HLS implementation was used, I started seeing the encrypted event I was expecting.

AirPlay playback still did not work out of the box though, this was related to #159 though.

@cfra cfra closed this as completed Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant