diff options
Diffstat (limited to 'client/src/standalone/videos/shared')
-rw-r--r-- | client/src/standalone/videos/shared/player-manager-options.ts | 8 |
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 | ||