mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 16:56:39 -06:00
Fix preview location in embed
This commit is contained in:
parent
78d5b1893d
commit
d063f8ca92
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user