Skip to content

Commit

Permalink
Version 12:
Browse files Browse the repository at this point in the history
* Cookies and http authentication credentials are now included in the fetch request used for H.264 streaming.
* No more console spam when changing between H.264 and Jpeg streaming methods with the Stats for nerds panel open.
  • Loading branch information
bp2008 committed May 11, 2018
1 parent ba6c584 commit 69070ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "11";
var ui_version = "12";
var bi_version = "%%VERSION%%";
var combined_version = ui_version + "-" + bi_version;
//if (!!navigator.userAgent.match(/ Android /))
Expand Down
9 changes: 3 additions & 6 deletions ui3/ui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -14649,17 +14649,15 @@ function FetchVideoH264Streamer(url, frameCallback, statusBlockCallback, streamE
{
var startTime = performance.now();

var fetchArgs = { credentials: "include" };
var fetchPromise;
if (typeof AbortController == "function")
{
// FF 57+, Edge 16+ (in theory)
abort_controller = new AbortController();
fetchPromise = fetch(url, { signal: abort_controller.signal });
}
else
{
fetchPromise = fetch(url);
fetchArgs.signal = abort_controller.signal;
}
fetchPromise = fetch(url, fetchArgs);

fetchPromise.then(function (res)
{
Expand Down Expand Up @@ -15358,7 +15356,6 @@ function StatsRow(name)
if (hidden)
return false;
hidden = true;
console.log("Hid " + name);
$root.hide();
return true;
}
Expand Down

0 comments on commit 69070ed

Please sign in to comment.