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

Clear video state when reusing the same video element #197

Open
ion-cojocaru opened this issue Dec 19, 2023 · 0 comments
Open

Clear video state when reusing the same video element #197

ion-cojocaru opened this issue Dec 19, 2023 · 0 comments

Comments

@ion-cojocaru
Copy link

I am encountering an issue while using a shared video element to play different video types. Specifically, I have implemented a 360 player using Three.js. However, I observed an issue following a prior setting of keySystems in the player.src for a DRM video. This retained state affects the 360 player, resulting in a black screen display.

I discovered that setting the video element's media keys to null resolves the issue with the 360 player, but it adversely affects subsequent DRM video playback.

I'm seeking guidance on how to reset the video element's state after changing the src without causing any unintended side-effects. Is there a way to achieve 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

1 participant