summaryrefslogtreecommitdiff
path: root/web/js/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-04 03:45:57 +0300
committerDevaev Maxim <[email protected]>2018-11-04 03:45:57 +0300
commitbdca0e883950281da6001cbe1710842ac687c37a (patch)
tree55f3ba11a1c315585fc0d2bb91f78fc7f89636f2 /web/js/stream.js
parent63229b0e8eb4f9eb4340f3c882af172215ccf2ff (diff)
workaround for chrome bug #527446
Diffstat (limited to 'web/js/stream.js')
-rw-r--r--web/js/stream.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/js/stream.js b/web/js/stream.js
index fe054e47..b2c2a3a2 100644
--- a/web/js/stream.js
+++ b/web/js/stream.js
@@ -84,8 +84,13 @@ function Stream() {
__updateStreamHeader(true);
if (!__prev_state) {
- tools.info("Stream acquired");
- $("stream-image").src = "/streamer/stream?t=" + new Date().getTime();
+ var path = "/streamer/stream?t=" + new Date().getTime();
+ if (tools.browser.is_chrome || tools.browser.is_blink) {
+ // uStreamer fix for https://bugs.chromium.org/p/chromium/issues/detail?id=527446
+ tools.info("Using advance_headers=1");
+ path += "&advance_headers=1";
+ }
+ $("stream-image").src = path;
$("stream-image").className = "stream-image-active";
$("stream-box").classList.remove("stream-box-inactive");
$("stream-led").className = "led-green";
@@ -94,6 +99,7 @@ function Stream() {
$("stream-quality-slider").disabled = false;
$("stream-reset-button").disabled = false;
__prev_state = true;
+ tools.info("Stream acquired");
}
}
}