Fix preview location in embed

pull/76/head
Bigard Florian 2017-07-19 14:24:40 +02:00 committed by GitHub
parent 78d5b1893d
commit d063f8ca92
1 changed files with 1 additions and 1 deletions

View File

@ -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 () {