diff options
author | Devaev Maxim <[email protected]> | 2018-08-28 10:41:16 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-28 10:41:16 +0300 |
commit | bc24d2c19327db81e0c3f491135e2c7c1a5dd098 (patch) | |
tree | f34f64b7e2408079bb156c8bd3cd5115df1c6131 /kvmd/web/js | |
parent | 16345b10057adc3615fd78c0311e2a58edabbf52 (diff) |
unifised urls without binding to mjpg_streamer
Diffstat (limited to 'kvmd/web/js')
-rw-r--r-- | kvmd/web/js/stream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/web/js/stream.js b/kvmd/web/js/stream.js index 51372420..43b720df 100644 --- a/kvmd/web/js/stream.js +++ b/kvmd/web/js/stream.js @@ -27,7 +27,7 @@ function Stream() { // XXX: In current implementation we don't need this event because Stream() has own state poller var __startPoller = function() { - var http = tools.makeRequest("GET", "/streamer/?action=snapshot", function() { + var http = tools.makeRequest("GET", "/streamer/snapshot", function() { if (http.readyState === 2 || http.readyState === 4) { var status = http.status; http.onreadystatechange = null; @@ -117,7 +117,7 @@ function Stream() { __normal_size = result.size; __applySizeFactor(); - $("stream-image").src = "/streamer/?action=stream&time=" + new Date().getTime(); + $("stream-image").src = "/streamer/stream/" + new Date().getTime(); } }); }; |