Replies: 1 comment
-
OK applying the change on 'streamTeardownComplete' seems to work. It's pretty slow tho, is this the best way? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This relates to #4070
I have loads of videos converted to streams with WebMs and MP4s (CMAF).
We have a few cases where some videos are failing as WebM streams in the MediaPlayer as highlighted above. I'm still trying to work out what's causing this but in the meantime I want to fallback to MP4s if it fails.
I can catch the error, I want to re-initialise the player with the new URL when this happens, however I just get a crash and the player stops - after the new URL has been applied.
You can see the line
Error caught - reinitialising with new URL
which is where I'm trying to apply the new video.These are the settings I'm using
And I'm calling
DashPlayer.initialize(videoEl, url, false)
when it happens.How to I stop this error crashing the player and re-initialising with the new URL?
Beta Was this translation helpful? Give feedback.
All reactions