From: Bigard Florian Date: Wed, 19 Jul 2017 12:24:40 +0000 (+0200) Subject: Fix preview location in embed X-Git-Tag: v0.0.1-alpha~362 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d063f8ca92070103ea1847cf8607ecae93e679ba;p=oweals%2Fpeertube.git Fix preview location in embed --- 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 @@ 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 () {