Bug: mux-video with hls: Error: Media element src was set while attaching MediaSource when adding tracks #933
Labels
bug
Something isn't working
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-video
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
I'm getting an error when supplying tracks to the mux-video web component.
[error] > Media element src was set while attaching MediaSource
Here's some example code:
<mux-video
The code I'm using in my component is more complex than this and involves the use of media-chrome, but even when I use straight up HTML without my wrapper component and the hosted version of mux-video it still occurs.src="https://some-hls-source"
There's no documentation on the mux-video readme about s, but since it's an extension of HTML
How do I provide the captions, chapters etc without triggering this error?
Reduced test case
https://codepen.io/endymion1818/pen/RwmKQpq
Steps to reproduce
Current Behavior
An error is logged to the console although player renders and works as expected.
Expected Behavior
No error logged to the console.
Errors
[error] > Media element src was set while attaching MediaSource
What version of the package are you using?
v0.19.0
The text was updated successfully, but these errors were encountered: