更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-13 16:47:40 +00:00
parent fac4cb15e5
commit b223bd7a89

View File

@ -189,8 +189,12 @@ var Infowindow = View.extend({
player = videojs('hls-video');
if (player) player.play();
if (player) {
alert("videojs found !");
player.play();
}
$video
.load(this._onLoadVideoSuccess)
.error(this._onLoadVideoError)
@ -637,8 +641,10 @@ var Infowindow = View.extend({
this.model.set('visibility', false);
}
if (player) player.dispose();
if (player) {
player.pause();
alert("videojs 暂停" );
}
},
/**