aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts9
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'
17import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player/peertube-player-manager' 17import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode } from '../../assets/player'
18import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings' 18import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings'
19import { TranslationsManager } from '../../assets/player/translations-manager' 19import { TranslationsManager } from '../../assets/player/translations-manager'
20import { isP2PEnabled } from '../../assets/player/utils' 20import { 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