From d063f8ca92070103ea1847cf8607ecae93e679ba Mon Sep 17 00:00:00 2001
From: Bigard Florian <florian.bigard@gmail.com>
Date: Wed, 19 Jul 2017 14:24:40 +0200
Subject: [PATCH] Fix preview location in embed

---
 client/src/standalone/videos/embed.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index d4bb74263a..f720809374 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -101,7 +101,7 @@
   loadVideoInfos(videoId, function (videoInfos) {
     var magnetUri = videoInfos.magnetUri
     var videoContainer = document.getElementById('video-container')
-    var previewUrl = window.location.protocol + '//' + videoInfos.podHost + videoInfos.previewPath
+    var previewUrl = window.location.origin + videoInfos.previewPath
     videoContainer.poster = previewUrl
 
     videojs('video-container', { controls: true, autoplay: false }, function () {
-- 
GitLab