You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Chromium-based browsers, when the poster is not accessible, the media element returns an empty error.
As a result, when both the media URL and the poster return a response other than 200. The media error is overwritten by an empty error, leaving the player in an inconsistent state.
Two use cases generate this behavior:
When the resource selection algorithm is unable to determine the resource type. For example, this will be the case for resources coming from Azure Media Services Sample Streams, if the type is not specified
When a middleware is used for dynamic resource resolution
// Case 1player.on(player.tech(true).el(),'error',()=>console.log('Video Element Error',player.tech(true).el().error));player.src('http://amssamples.streaming.mediaservices.windows.net/91492735-c523-432b-ba01-faba6c2206a2/AzureMediaServicesPromo.ism/manifest(format=mpd-time-csf)');player.poster('https://vjs.zencdn.net/v/oceans.wrong.png');// Case 2videojs.use('fake/md',(player)=>{return{setSource(srcObj,next){src=null;// Error calling the server next(true,src);}}});player.on(player.tech(true).el(),'error',()=>console.log('Video Element Error',player.tech(true).el().error));player.src({src:'1337',type:'fake/md'});player.poster('https://vjs.zencdn.net/v/oceans.wrong.png');
Errors
No response
What version of Video.js are you using?
v7.x, v8.x
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Chromium based browsers
What OS(es) and version(s) does this occur with?
All
The text was updated successfully, but these errors were encountered:
When both the media URL and the poster return a response other than 200.
The media error is overwritten by an empty error, leaving the player in an inconsistent state.
- add a condition to `handleTechError_` to ensure that the `error` is truthy
- add a test case
Fixesvideojs#8409
When both the media URL and the poster return a response other than 200.
The media error is overwritten by an empty error, leaving the player in an inconsistent state.
- add a condition to `handleTechError_` to ensure that the `error` is truthy
- add a test case
Fixes#8409
Description
On Chromium-based browsers, when the poster is not accessible, the media element returns an empty error.
As a result, when both the media URL and the poster return a response other than 200. The media error is overwritten by an empty error, leaving the player in an inconsistent state.
Two use cases generate this behavior:
Steps to reproduce
Errors
No response
What version of Video.js are you using?
v7.x, v8.x
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Chromium based browsers
What OS(es) and version(s) does this occur with?
All
The text was updated successfully, but these errors were encountered: