From c4207f978e23c77f09c4646b940dfd532281300f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 2 Feb 2022 11:16:23 +0100 Subject: Fast forward on HLS decode error --- client/src/standalone/videos/embed.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'client/src/standalone/videos/embed.ts') 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 { VideoPlaylistElement, VideoStreamingPlaylistType } from '../../../../shared/models' -import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player/peertube-player-manager' +import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player' import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings' import { TranslationsManager } from '../../assets/player/translations-manager' import { isP2PEnabled } from '../../assets/player/utils' @@ -558,7 +558,11 @@ export class PeerTubeEmbed { serverUrl: window.location.origin, language: navigator.language, embedUrl: window.location.origin + videoInfo.embedPath, - embedTitle: videoInfo.name + embedTitle: videoInfo.name, + + errorNotifier: () => { + // Empty, we don't have a notifier in the embed + } }, webtorrent: { @@ -664,7 +668,6 @@ export class PeerTubeEmbed { this.player.dispose() this.playerElement = null this.displayError('This video is not available because the remote instance is not responding.', translations) - } } -- cgit v1.2.3