mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix preview location in embed
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user