aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.html
diff options
context:
space:
mode:
authorBigard Florian <florian.bigard@gmail.com>2017-07-19 14:24:40 +0200
committerGitHub <noreply@github.com>2017-07-19 14:24:40 +0200
commitd063f8ca92070103ea1847cf8607ecae93e679ba (patch)
tree644ebaa8b959d99a2411a8b3d343a9230f1ecb09 /client/src/standalone/videos/embed.html
parent78d5b1893decae252c806f46fa45d07112da4897 (diff)
downloadPeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.tar.gz
PeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.tar.zst
PeerTube-d063f8ca92070103ea1847cf8607ecae93e679ba.zip
Fix preview location in embed
Diffstat (limited to 'client/src/standalone/videos/embed.html')
-rw-r--r--client/src/standalone/videos/embed.html2
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 () {