From b223bd7a895cec18824355607a6c3d6447997e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Sat, 13 Jun 2020 16:47:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20infowindow-view.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/geo/ui/infowindow-view.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/geo/ui/infowindow-view.js b/src/geo/ui/infowindow-view.js index 4edcef3..421686f 100644 --- a/src/geo/ui/infowindow-view.js +++ b/src/geo/ui/infowindow-view.js @@ -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 暂停" ); + } }, /**