Client: don't use thumbnail in embed video for now

pull/24/head
Chocobozzz 2016-11-08 21:19:57 +01:00
parent 067e3f84ce
commit 4fab6acb45
1 changed files with 4 additions and 3 deletions

View File

@ -72,12 +72,13 @@
var urlParts = window.location.href.split('/')
var videoId = urlParts[urlParts.length - 1]
var videoContainer = document.getElementById('video-container')
loadVideoInfos(videoId, function (videoInfos) {
var magnetUri = videoInfos.magnetUri
var thumbnailUrl = 'http://' + videoInfos.podUrl + videoInfos.thumbnailPath
videoContainer.poster = thumbnailUrl
// FIXME: use poster?
// var videoContainer = document.getElementById('video-container')
// var thumbnailUrl = 'http://' + videoInfos.podUrl + videoInfos.thumbnailPath
// videoContainer.poster = thumbnailUrl
videojs('video-container', { controls: true, autoplay: false }, function () {
var player = this