diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-02 11:16:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-02 11:26:18 +0100 |
commit | c4207f978e23c77f09c4646b940dfd532281300f (patch) | |
tree | b11f459839dced708a80f6cff5d57e49ecf45917 /client/src/standalone | |
parent | b25fdc73fdf22896093e12c51bb64160c0410879 (diff) | |
download | PeerTube-c4207f978e23c77f09c4646b940dfd532281300f.tar.gz PeerTube-c4207f978e23c77f09c4646b940dfd532281300f.tar.zst PeerTube-c4207f978e23c77f09c4646b940dfd532281300f.zip |
Fast forward on HLS decode error
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index eb8076b98..054f771ab 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -14,7 +14,7 @@ import { | |||
14 | VideoPlaylistElement, | 14 | VideoPlaylistElement, |
15 | VideoStreamingPlaylistType | 15 | VideoStreamingPlaylistType |
16 | } from '../../../../shared/models' | 16 | } from '../../../../shared/models' |
17 | import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player/peertube-player-manager' | 17 | import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player' |
18 | import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings' | 18 | import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings' |
19 | import { TranslationsManager } from '../../assets/player/translations-manager' | 19 | import { TranslationsManager } from '../../assets/player/translations-manager' |
20 | import { isP2PEnabled } from '../../assets/player/utils' | 20 | import { isP2PEnabled } from '../../assets/player/utils' |
@@ -558,7 +558,11 @@ export class PeerTubeEmbed { | |||
558 | serverUrl: window.location.origin, | 558 | serverUrl: window.location.origin, |
559 | language: navigator.language, | 559 | language: navigator.language, |
560 | embedUrl: window.location.origin + videoInfo.embedPath, | 560 | embedUrl: window.location.origin + videoInfo.embedPath, |
561 | embedTitle: videoInfo.name | 561 | embedTitle: videoInfo.name, |
562 | |||
563 | errorNotifier: () => { | ||
564 | // Empty, we don't have a notifier in the embed | ||
565 | } | ||
562 | }, | 566 | }, |
563 | 567 | ||
564 | webtorrent: { | 568 | webtorrent: { |
@@ -664,7 +668,6 @@ export class PeerTubeEmbed { | |||
664 | this.player.dispose() | 668 | this.player.dispose() |
665 | this.playerElement = null | 669 | this.playerElement = null |
666 | this.displayError('This video is not available because the remote instance is not responding.', translations) | 670 | this.displayError('This video is not available because the remote instance is not responding.', translations) |
667 | |||
668 | } | 671 | } |
669 | } | 672 | } |
670 | 673 | ||