Skip to content

Commit b3f1d5c

Browse files
When coming back from AYSW, maybe img.src == new src. Just set it and send a PLAY for good measure
1 parent 0d88341 commit b3f1d5c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

web/js/MonitorStream.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,12 @@ function MonitorStream(monitorData) {
506506
}
507507
if (-1 == src.search('connkey')) {
508508
src += '&connkey='+this.connKey;
509-
510509
}
511510
stream.onerror = this.img_onerror.bind(this);
512511
stream.onload = this.img_onload.bind(this);
513512

514-
if (stream.src != src) {
515-
stream.src = '';
516-
stream.src = src;
517-
}
513+
stream.src = src;
514+
this.streamCommand(CMD_PLAY);
518515
this.started = true;
519516
this.streamListenerBind();
520517
this.activePlayer = 'zms';

0 commit comments

Comments
 (0)