In multi-server when viewing an event it may be coming from a different server than the serverhost. Use monitorUrl instead of thisUrl in ajax calls and include auth data. Fixes failed ajax when viewing h264 using zms on a multi-server environment
This commit is contained in:
parent
883772295d
commit
a0215067e4
|
@ -34,7 +34,7 @@ function streamReq(data) {
|
|||
data.view = 'request';
|
||||
data.request = 'stream';
|
||||
|
||||
$j.getJSON(thisUrl, data)
|
||||
$j.getJSON(monitorUrl, data)
|
||||
.done(getCmdResponse)
|
||||
.fail(logAjaxFail);
|
||||
}
|
||||
|
@ -657,6 +657,7 @@ function getFrameResponse(respObj, respText) {
|
|||
|
||||
function frameQuery(eventId, frameId, loadImage) {
|
||||
var data = {};
|
||||
if (auth_hash) data.auth = auth_hash;
|
||||
data.loopback = loadImage;
|
||||
data.id = {eventId, frameId};
|
||||
|
||||
|
|
Loading…
Reference in New Issue