File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
web/skins/classic/views/js Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ function vjsPlay() { //catches if we change mode programatically
565
565
streamPlay ( ) ;
566
566
}
567
567
568
- function streamPlay ( ) {
568
+ function streamPlay ( ) {
569
569
$j ( '#pauseBtn' ) . show ( ) ;
570
570
$j ( '#playBtn' ) . hide ( ) ;
571
571
setButtonState ( 'pauseBtn' , 'inactive' ) ;
@@ -1318,7 +1318,6 @@ function initPage() {
1318
1318
getAvailableTags ( ) ;
1319
1319
getSelectedTags ( ) ;
1320
1320
1321
-
1322
1321
// Load the event stats
1323
1322
getStat ( ) ;
1324
1323
zmPanZoom . init ( ) ;
@@ -1645,7 +1644,12 @@ function initPage() {
1645
1644
el . addEventListener ( 'dblclick' , doubleClickOnStream ) ;
1646
1645
} ) ;
1647
1646
1648
- streamPause ( ) ;
1647
+ const video = document . querySelector ( 'video' ) ;
1648
+ if ( ! vid || ( vid && video . autoplay && ! video . paused ) ) {
1649
+ streamPlay ( ) ;
1650
+ } else {
1651
+ streamPause ( ) ;
1652
+ }
1649
1653
1650
1654
if ( parseInt ( ZM_OPT_USE_GEOLOCATION ) && parseFloat ( eventData . Latitude ) && parseFloat ( eventData . Longitude ) ) {
1651
1655
const mapDiv = document . getElementById ( 'LocationMap' ) ;
You can’t perform that action at this time.
0 commit comments