mirror of
https://github.com/stashapp/stash.git
synced 2025-12-20 15:24:05 +01:00
Frontend fix media_err_decode on playback (#4506)
This commit is contained in:
parent
11cafe933a
commit
0b82dbf666
1 changed files with 5 additions and 1 deletions
|
|
@ -145,7 +145,11 @@ class SourceSelectorPlugin extends videojs.getPlugin("plugin") {
|
|||
if (!error) return;
|
||||
|
||||
// Only try next source if media was unsupported
|
||||
if (error.code !== MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) return;
|
||||
if (
|
||||
error.code !== MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED &&
|
||||
error.code !== MediaError.MEDIA_ERR_DECODE
|
||||
)
|
||||
return;
|
||||
|
||||
const currentSource = player.currentSource() as ISource;
|
||||
console.log(`Source '${currentSource.label}' is unsupported`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue