Fix preview location in embed
authorBigard Florian <florian.bigard@gmail.com>
Wed, 19 Jul 2017 12:24:40 +0000 (14:24 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2017 12:24:40 +0000 (14:24 +0200)
client/src/standalone/videos/embed.html

index d4bb74263a576e49d8d8c432c61a1098d6436556..f7208093747d9ed4ff880f994b1f723d2f283195 100644 (file)
   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 () {