From bd2b51be4b29e6c3c72d8715164cde672bd41186 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Jun 2022 14:04:03 +0200 Subject: Put instance name in embed button --- client/src/standalone/videos/shared/player-manager-options.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/src/standalone/videos/shared') diff --git a/client/src/standalone/videos/shared/player-manager-options.ts b/client/src/standalone/videos/shared/player-manager-options.ts index 144d74319..f3bd46a69 100644 --- a/client/src/standalone/videos/shared/player-manager-options.ts +++ b/client/src/standalone/videos/shared/player-manager-options.ts @@ -148,6 +148,8 @@ export class PlayerManagerOptions { captionsResponse: Response live?: LiveVideo + serverConfig: HTMLServerConfig + alreadyHadPlayer: boolean translations: Translations @@ -163,7 +165,8 @@ export class PlayerManagerOptions { alreadyHadPlayer, translations, playlistTracker, - live + live, + serverConfig } = options const videoCaptions = await this.buildCaptions(captionsResponse, translations) @@ -205,7 +208,10 @@ export class PlayerManagerOptions { videoDuration: video.duration, enableHotkeys: true, + peertubeLink: this.peertubeLink, + instanceName: serverConfig.instance.name, + poster: window.location.origin + video.previewPath, theaterButton: false, -- cgit v1.2.3