]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed.ts
Add messages about privacy concerns (P2P)
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.ts
index da935ef4c97f2da49a500faa2f8f1dcb9181ef64..bb6baf7f0a1ac100ceffdf7d6d9f179e5813cad7 100644 (file)
@@ -7,7 +7,7 @@ import 'videojs-dock/dist/videojs-dock.es.js'
 import { VideoDetails } from '../../../../shared'
 
 function getVideoUrl (id: string) {
-  return window.location.origin + '/api/v1/videos/' + videoId
+  return window.location.origin + '/api/v1/videos/' + id
 }
 
 async function loadVideoInfo (videoId: string): Promise<VideoDetails> {
@@ -44,7 +44,8 @@ loadVideoInfo(videoId)
       const player = this
 
       player.dock({
-        title: videoInfo.name
+        title: videoInfo.name,
+        description: 'Use P2P, other may know you are watching that video.'
       })
     })
   })