mirror of https://github.com/Chocobozzz/PeerTube
Fix preview location in embed
parent
78d5b1893d
commit
d063f8ca92
|
@ -101,7 +101,7 @@
|
||||||
loadVideoInfos(videoId, function (videoInfos) {
|
loadVideoInfos(videoId, function (videoInfos) {
|
||||||
var magnetUri = videoInfos.magnetUri
|
var magnetUri = videoInfos.magnetUri
|
||||||
var videoContainer = document.getElementById('video-container')
|
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
|
videoContainer.poster = previewUrl
|
||||||
|
|
||||||
videojs('video-container', { controls: true, autoplay: false }, function () {
|
videojs('video-container', { controls: true, autoplay: false }, function () {
|
||||||
|
|
Loading…
Reference in New Issue