diff options
author | Devaev Maxim <[email protected]> | 2018-12-24 01:30:54 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-24 01:30:54 +0300 |
commit | a4e7808c5e5348442add6d40e007976f22fb65fc (patch) | |
tree | 329478623e03e5ad66f8333ea8941ce4beeaf7b8 /web/share/js/kvm | |
parent | 69a60b218633b201e06771650c2c36bbec7bac13 (diff) |
fixed browser detection
Diffstat (limited to 'web/share/js/kvm')
-rw-r--r-- | web/share/js/kvm/stream.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 01ded5bc..c1ed4df5 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -87,14 +87,14 @@ function Streamer() { if (!__prev) { var path = "/streamer/stream?key=" + __client_key; - if (tools.browser.is_chrome || tools.browser.is_blink) { - // uStreamer fix for Blink https://bugs.chromium.org/p/chromium/issues/detail?id=527446 - tools.info("Stream: using advance_headers=1 to fix Blink MJPG bugs"); - path += "&advance_headers=1"; - } else if (tools.browser.is_safari || tools.browser.is_ios) { + if (tools.browser.is_safari || tools.browser.is_ios) { // uStreamer fix for WebKit tools.info("Stream: using dual_final_frames=1 to fix WebKit MJPG bugs"); path += "&dual_final_frames=1"; + } else if (tools.browser.is_chrome || tools.browser.is_blink) { + // uStreamer fix for Blink https://bugs.chromium.org/p/chromium/issues/detail?id=527446 + tools.info("Stream: using advance_headers=1 to fix Blink MJPG bugs"); + path += "&advance_headers=1"; } $("stream-image").src = path; $("stream-image").className = "stream-image-active"; |