Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix preview location in embed

Bigard Floriand063f8ca9207
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index d4bb74263a..f720809374 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -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 () {