mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add new media error types
This commit is contained in:
parent
081d408b18
commit
15d30ffaeb
5 changed files with 39 additions and 20 deletions
|
@ -1022,8 +1022,7 @@ export class HtmlVideoPlayer {
|
|||
// Only trigger this if there is media info
|
||||
// Avoid triggering in situations where it might not actually have a video stream (audio only live tv channel)
|
||||
if (!mediaSource || mediaSource.RunTimeTicks) {
|
||||
// FIXME: This shouldn't really be a decode error...
|
||||
onErrorInternal(this, MediaError.MEDIA_DECODE_ERROR);
|
||||
onErrorInternal(this, MediaError.NO_MEDIA_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1279,7 +1278,7 @@ export class HtmlVideoPlayer {
|
|||
// HACK: Give JavascriptSubtitlesOctopus time to dispose itself
|
||||
setTimeout(() => {
|
||||
// FIXME: Probably not a decode error...
|
||||
onErrorInternal(this, MediaError.MEDIA_DECODE_ERROR);
|
||||
onErrorInternal(this, MediaError.ASS_RENDER_ERROR);
|
||||
}, 0);
|
||||
},
|
||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue