aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index f2ac5dca6..1efecd3f3 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -22,8 +22,6 @@ loadVideoInfo(videoId)
22 const videoContainerId = 'video-container' 22 const videoContainerId = 'video-container'
23 23
24 const videoElement = document.getElementById(videoContainerId) as HTMLVideoElement 24 const videoElement = document.getElementById(videoContainerId) as HTMLVideoElement
25 videoElement.poster = window.location.origin + videoInfo.previewPath
26
27 let autoplay = false 25 let autoplay = false
28 26
29 try { 27 try {
@@ -41,7 +39,8 @@ loadVideoInfo(videoId)
41 videoFiles: videoInfo.files, 39 videoFiles: videoInfo.files,
42 videoDuration: videoInfo.duration, 40 videoDuration: videoInfo.duration,
43 enableHotkeys: true, 41 enableHotkeys: true,
44 peertubeLink: true 42 peertubeLink: true,
43 poster: window.location.origin + videoInfo.previewPath
45 }) 44 })
46 videojs(videoContainerId, videojsOptions, function () { 45 videojs(videoContainerId, videojsOptions, function () {
47 const player = this 46 const player = this