aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-12 12:16:13 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-12 12:16:13 +0200
commit43f61d2635113001c3d19e3299d8700a00d47e48 (patch)
treeb47aa13c08a4d98df974dfcba47b1b2a468127ff /client/src/standalone/videos
parentf981dae8617271a2dc713bb683951730b306e0c5 (diff)
downloadPeerTube-43f61d2635113001c3d19e3299d8700a00d47e48.tar.gz
PeerTube-43f61d2635113001c3d19e3299d8700a00d47e48.tar.zst
PeerTube-43f61d2635113001c3d19e3299d8700a00d47e48.zip
Add preview to embed
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r--client/src/standalone/videos/embed.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 0a1c3eadf..365dc3fa2 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -88,10 +88,9 @@
88 88
89 loadVideoInfos(videoId, function (videoInfos) { 89 loadVideoInfos(videoId, function (videoInfos) {
90 var magnetUri = videoInfos.magnetUri 90 var magnetUri = videoInfos.magnetUri
91 // FIXME: use poster? 91 var videoContainer = document.getElementById('video-container')
92 // var videoContainer = document.getElementById('video-container') 92 var previewUrl = window.location.protocol + '//' + videoInfos.podHost + videoInfos.previewPath
93 // var thumbnailUrl = 'http://' + videoInfos.podUrl + videoInfos.thumbnailPath 93 videoContainer.poster = previewUrl
94 // videoContainer.poster = thumbnailUrl
95 94
96 videojs('video-container', { controls: true, autoplay: false }, function () { 95 videojs('video-container', { controls: true, autoplay: false }, function () {
97 var player = this 96 var player = this