Fix preview location in embed

This commit is contained in:
Bigard Florian 2017-07-19 14:24:40 +02:00 committed by GitHub
parent 78d5b1893d
commit d063f8ca92

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