aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-28 14:04:03 +0200
committerChocobozzz <me@florianbigard.com>2022-06-28 14:11:10 +0200
commitbd2b51be4b29e6c3c72d8715164cde672bd41186 (patch)
treef3d54d1a49dffacd073dedc288fa8f7c2e7f7683 /client/src/standalone/videos/shared
parent9f4109e263be961ab0b210fcbc003a8c78f5b9fe (diff)
downloadPeerTube-bd2b51be4b29e6c3c72d8715164cde672bd41186.tar.gz
PeerTube-bd2b51be4b29e6c3c72d8715164cde672bd41186.tar.zst
PeerTube-bd2b51be4b29e6c3c72d8715164cde672bd41186.zip
Put instance name in embed button
Diffstat (limited to 'client/src/standalone/videos/shared')
-rw-r--r--client/src/standalone/videos/shared/player-manager-options.ts8
1 files changed, 7 insertions, 1 deletions
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 {
148 captionsResponse: Response 148 captionsResponse: Response
149 live?: LiveVideo 149 live?: LiveVideo
150 150
151 serverConfig: HTMLServerConfig
152
151 alreadyHadPlayer: boolean 153 alreadyHadPlayer: boolean
152 154
153 translations: Translations 155 translations: Translations
@@ -163,7 +165,8 @@ export class PlayerManagerOptions {
163 alreadyHadPlayer, 165 alreadyHadPlayer,
164 translations, 166 translations,
165 playlistTracker, 167 playlistTracker,
166 live 168 live,
169 serverConfig
167 } = options 170 } = options
168 171
169 const videoCaptions = await this.buildCaptions(captionsResponse, translations) 172 const videoCaptions = await this.buildCaptions(captionsResponse, translations)
@@ -205,7 +208,10 @@ export class PlayerManagerOptions {
205 208
206 videoDuration: video.duration, 209 videoDuration: video.duration,
207 enableHotkeys: true, 210 enableHotkeys: true,
211
208 peertubeLink: this.peertubeLink, 212 peertubeLink: this.peertubeLink,
213 instanceName: serverConfig.instance.name,
214
209 poster: window.location.origin + video.previewPath, 215 poster: window.location.origin + video.previewPath,
210 theaterButton: false, 216 theaterButton: false,
211 217