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

How to refetch Fairplay license on player.src changing #178

Open
EugenPulup opened this issue Oct 24, 2022 · 2 comments
Open

How to refetch Fairplay license on player.src changing #178

EugenPulup opened this issue Oct 24, 2022 · 2 comments

Comments

@EugenPulup
Copy link

How i can make player re-fetch Fairplay license for new video, if i start play new video via player.src(source) .
On changing sources player dont fetch new Fairplay license , and fall with error. As i understood fairplay cant start to play new DRM protected source if its dont the same video.

Also i found same issue at fairplay npm module, comment from there :
"New Fairplay content cannot be played once MediaKeys have been attached to the video element (Unless its the same source). To get around this issue we need to clear those keys."

As i understood i need to clear/close some DRM session or data, that eme create.

@EugenPulup
Copy link
Author

delete videojs.getAllPlayers()[0].eme;
await videojs.getAllPlayers()[0].eme();

I found that if I remove the eme object from the player and re-create it, the eme plugin will get DRM for new sources.

But i think there are way to do it more nicely 🤔

@kaiiisaka
Copy link

I have same problem and deleting eme object don't fix this :-(

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

2 participants