mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Frontend fix media_err_decode on playback (#4506)
This commit is contained in:
@@ -145,7 +145,11 @@ class SourceSelectorPlugin extends videojs.getPlugin("plugin") {
|
|||||||
if (!error) return;
|
if (!error) return;
|
||||||
|
|
||||||
// Only try next source if media was unsupported
|
// 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;
|
const currentSource = player.currentSource() as ISource;
|
||||||
console.log(`Source '${currentSource.label}' is unsupported`);
|
console.log(`Source '${currentSource.label}' is unsupported`);
|
||||||
|
|||||||
Reference in New Issue
Block a user