Client: don't use thumbnail in embed video for now
This commit is contained in:
parent
067e3f84ce
commit
4fab6acb45
|
@ -72,12 +72,13 @@
|
||||||
|
|
||||||
var urlParts = window.location.href.split('/')
|
var urlParts = window.location.href.split('/')
|
||||||
var videoId = urlParts[urlParts.length - 1]
|
var videoId = urlParts[urlParts.length - 1]
|
||||||
var videoContainer = document.getElementById('video-container')
|
|
||||||
|
|
||||||
loadVideoInfos(videoId, function (videoInfos) {
|
loadVideoInfos(videoId, function (videoInfos) {
|
||||||
var magnetUri = videoInfos.magnetUri
|
var magnetUri = videoInfos.magnetUri
|
||||||
var thumbnailUrl = 'http://' + videoInfos.podUrl + videoInfos.thumbnailPath
|
// FIXME: use poster?
|
||||||
videoContainer.poster = thumbnailUrl
|
// var videoContainer = document.getElementById('video-container')
|
||||||
|
// var thumbnailUrl = 'http://' + videoInfos.podUrl + videoInfos.thumbnailPath
|
||||||
|
// videoContainer.poster = thumbnailUrl
|
||||||
|
|
||||||
videojs('video-container', { controls: true, autoplay: false }, function () {
|
videojs('video-container', { controls: true, autoplay: false }, function () {
|
||||||
var player = this
|
var player = this
|
||||||
|
|
Loading…
Reference in New Issue