更新 infowindow-view.js
This commit is contained in:
parent
ca7e857600
commit
4e68966eb3
@ -173,15 +173,20 @@ var Infowindow = View.extend({
|
|||||||
_loadVideoFromUrl: function (url) {
|
_loadVideoFromUrl: function (url) {
|
||||||
var $cover = this.$('.js-cover');
|
var $cover = this.$('.js-cover');
|
||||||
|
|
||||||
this._startCoverLoader();
|
// this._startCoverLoader();
|
||||||
|
|
||||||
|
// var $video = $('<video class="video-js CDB-infowindow-media-item" controls data-setup="{}" width="100%"> <source src="" </source></video>');
|
||||||
|
|
||||||
|
var $video = $('<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" \
|
||||||
|
poster="http://vjs.zencdn.net/v/oceans.png"> \
|
||||||
|
<source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"></video>');
|
||||||
|
|
||||||
var $video = $('<video class="video-js CDB-infowindow-media-item" controls data-setup="{}" width="100%"> <source src="" </source></video>');
|
|
||||||
$cover.append($video);
|
$cover.append($video);
|
||||||
|
|
||||||
$video
|
$video
|
||||||
// .load(this._onLoadVideoSuccess)
|
// .load(this._onLoadVideoSuccess)
|
||||||
.error(this._onLoadVideoError)
|
.error(this._onLoadVideoError)
|
||||||
.attr('src', url);
|
// .attr('src', url);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onLoadVideoError: function () {
|
_onLoadVideoError: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user