Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Need to work around tests on instanceof HTMLMediaElement #9

Open
AxelDelmas opened this issue Apr 6, 2016 · 0 comments
Open

Need to work around tests on instanceof HTMLMediaElement #9

AxelDelmas opened this issue Apr 6, 2016 · 0 comments

Comments

@AxelDelmas
Copy link

Dash.js, and probably others, test if the video is an instance of HTMLMediaElement : https://github.com/Dash-Industry-Forum/dash.js/blob/development/src/streaming/utils/Capabilities.js#L66

We used to inherit HTMLMediaElement prototype to work around this, but it broke when updating the version (Error: illegal invocation when setting video.src): https://github.com/Dash-Industry-Forum/dash.js/blob/ae5330eb3a6112fda9f4b831b2620f4a58990b44/src/streaming/models/VideoModel.js#L88

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant