diff options
author | Bigard Florian <florian.bigard@gmail.com> | 2017-07-19 14:24:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 14:24:40 +0200 |
commit | d063f8ca92070103ea1847cf8607ecae93e679ba (patch) | |
tree | 644ebaa8b959d99a2411a8b3d343a9230f1ecb09 /client/src/standalone/videos | |
parent | 78d5b1893decae252c806f46fa45d07112da4897 (diff) | |
download | PeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.tar.gz PeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.tar.zst PeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.zip |
Fix preview location in embed
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r-- | client/src/standalone/videos/embed.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index d4bb74263..f72080937 100644 --- a/client/src/standalone/videos/embed.html +++ b/client/src/standalone/videos/embed.html | |||
@@ -101,7 +101,7 @@ | |||
101 | loadVideoInfos(videoId, function (videoInfos) { | 101 | loadVideoInfos(videoId, function (videoInfos) { |
102 | var magnetUri = videoInfos.magnetUri | 102 | var magnetUri = videoInfos.magnetUri |
103 | var videoContainer = document.getElementById('video-container') | 103 | var videoContainer = document.getElementById('video-container') |
104 | var previewUrl = window.location.protocol + '//' + videoInfos.podHost + videoInfos.previewPath | 104 | var previewUrl = window.location.origin + videoInfos.previewPath |
105 | videoContainer.poster = previewUrl | 105 | videoContainer.poster = previewUrl |
106 | 106 | ||
107 | videojs('video-container', { controls: true, autoplay: false }, function () { | 107 | videojs('video-container', { controls: true, autoplay: false }, function () { |