更新 infowindow-view.js
This commit is contained in:
parent
41c2f8357e
commit
e46fdf2c32
@ -9,8 +9,6 @@ var util = require('../../core/util');
|
||||
|
||||
var ESC_KEY = 27;
|
||||
|
||||
var player;
|
||||
|
||||
/**
|
||||
* Usage:
|
||||
* var infowindow = new Infowindow({
|
||||
@ -136,11 +134,12 @@ var Infowindow = View.extend({
|
||||
},
|
||||
|
||||
_loadVideo: function () {
|
||||
this._renderCoverLoader();
|
||||
this._startCoverLoader();
|
||||
//this._renderCoverLoader();
|
||||
//this._startCoverLoader();
|
||||
|
||||
var url = this._getCoverURL();
|
||||
|
||||
/*
|
||||
if (this._isLoadingFields()) {
|
||||
return;
|
||||
}
|
||||
@ -156,6 +155,10 @@ var Infowindow = View.extend({
|
||||
} else {
|
||||
this._loadVideoFromUrl(url);
|
||||
}
|
||||
*/
|
||||
var $urlsrc = this.$('#target');
|
||||
$urlsrc.attr('src', url);
|
||||
|
||||
},
|
||||
|
||||
_isValidVideoURL: function (url) {
|
||||
@ -618,10 +621,7 @@ var Infowindow = View.extend({
|
||||
this.model.set('visibility', false);
|
||||
}
|
||||
|
||||
if (player) {
|
||||
player.pause();
|
||||
alert("videojs 暂停" );
|
||||
}
|
||||
alert("videojs 暂停" );
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user