Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Merge branch 'release/2.1.0' into develop

Chocobozzz818c449b3c34
diff --cc client/src/standalone/videos/embed.ts
index d5b42a0259,5213443fc5..e3bcbc010e
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@@ -261,19 -261,22 +261,22 @@@ export class PeerTubeEmbed
}
private async buildDock (videoInfo: VideoDetails, configResponse: Response) {
- if (this.controls) {
- // On webtorrent fallback, player may have been disposed
- if (!this.player.player_) return
+ if (!this.controls) return
- const title = this.title ? videoInfo.name : undefined
++ // On webtorrent fallback, player may have been disposed
++ if (!this.player.player_) return
+
- const config: ServerConfig = await configResponse.json()
- const description = config.tracker.enabled && this.warningTitle
- ? '<span class="text">' + this.player.localize('Watching this video may reveal your IP address to others.') + '</span>'
- : undefined
+ const title = this.title ? videoInfo.name : undefined
- this.player.dock({
- title,
- description
- })
- }
+ const config: ServerConfig = await configResponse.json()
+ const description = config.tracker.enabled && this.warningTitle
+ ? '<span class="text">' + peertubeTranslate('Watching this video may reveal your IP address to others.') + '</span>'
+ : undefined
+
+ this.player.dock({
+ title,
+ description
+ })
}
private buildCSS () {