Skip to content

Update shaka-code to avoid depricated Player w/ mediaElement #120

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

Open
malmen237 opened this issue May 31, 2024 · 0 comments
Open

Update shaka-code to avoid depricated Player w/ mediaElement #120

malmen237 opened this issue May 31, 2024 · 0 comments

Comments

@malmen237
Copy link

Player gets warning:


Player w/ mediaElement has been deprecated and will be removed in v5.0 . 
We are currently at version v4.9 . 
Additional information: Please migrate from initializing Player with a mediaElement; use the attach method instead.

Needs fix:
https://shaka-player-demo.appspot.com/docs/api/tutorial-basic-usage.html
Update from:
const player = new shaka.Player(video);
To
const player = new shaka.Player();
await player.attach(video);

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