更新 infowindow-view.js
This commit is contained in:
parent
fac4cb15e5
commit
b223bd7a89
@ -189,8 +189,12 @@ var Infowindow = View.extend({
|
|||||||
|
|
||||||
player = videojs('hls-video');
|
player = videojs('hls-video');
|
||||||
|
|
||||||
if (player) player.play();
|
if (player) {
|
||||||
|
|
||||||
|
alert("videojs found !");
|
||||||
|
player.play();
|
||||||
|
|
||||||
|
}
|
||||||
$video
|
$video
|
||||||
.load(this._onLoadVideoSuccess)
|
.load(this._onLoadVideoSuccess)
|
||||||
.error(this._onLoadVideoError)
|
.error(this._onLoadVideoError)
|
||||||
@ -637,8 +641,10 @@ var Infowindow = View.extend({
|
|||||||
this.model.set('visibility', false);
|
this.model.set('visibility', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player) player.dispose();
|
if (player) {
|
||||||
|
player.pause();
|
||||||
|
alert("videojs 暂停" );
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user