Send out a quit command when jumping to prev/next video so that hopefully zms exits.

pull/3551/head
Isaac Connor 2022-07-11 14:35:24 -04:00
parent d7eb8045ed
commit c88d243e31
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,7 @@ function streamFastRev(action) {
function streamPrev(action) {
if (action) {
$j(".vjsMessage").remove();
if (vid==null) streamReq({command: CMD_QUIT});
location.replace(thisUrl + '?view=event&eid=' + prevEventId + filterQuery + sortQuery);
return;
@ -484,6 +485,7 @@ function streamNext(action) {
// We used to try to dynamically update all the bits in the page, which is really complex
// How about we just reload the page?
//
if (vid==null) streamReq({command: CMD_QUIT});
location.replace(thisUrl + '?view=event&eid=' + nextEventId + filterQuery + sortQuery);
return;
if (vid && ( NextEventDefVideoPath.indexOf('view_video') > 0 )) {