Skip to content

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

@malmen237

Description

@malmen237

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions