Send out a quit command when jumping to prev/next video so that hopefully zms exits.
parent
d7eb8045ed
commit
c88d243e31
|
@ -450,6 +450,7 @@ function streamFastRev(action) {
|
||||||
function streamPrev(action) {
|
function streamPrev(action) {
|
||||||
if (action) {
|
if (action) {
|
||||||
$j(".vjsMessage").remove();
|
$j(".vjsMessage").remove();
|
||||||
|
if (vid==null) streamReq({command: CMD_QUIT});
|
||||||
location.replace(thisUrl + '?view=event&eid=' + prevEventId + filterQuery + sortQuery);
|
location.replace(thisUrl + '?view=event&eid=' + prevEventId + filterQuery + sortQuery);
|
||||||
return;
|
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
|
// We used to try to dynamically update all the bits in the page, which is really complex
|
||||||
// How about we just reload the page?
|
// How about we just reload the page?
|
||||||
//
|
//
|
||||||
|
if (vid==null) streamReq({command: CMD_QUIT});
|
||||||
location.replace(thisUrl + '?view=event&eid=' + nextEventId + filterQuery + sortQuery);
|
location.replace(thisUrl + '?view=event&eid=' + nextEventId + filterQuery + sortQuery);
|
||||||
return;
|
return;
|
||||||
if (vid && ( NextEventDefVideoPath.indexOf('view_video') > 0 )) {
|
if (vid && ( NextEventDefVideoPath.indexOf('view_video') > 0 )) {
|
||||||
|
|
Loading…
Reference in New Issue