Skip to content

Commit

Permalink
Version 264:
Browse files Browse the repository at this point in the history
* Attempted to fix a null reference error that someone reported from UI3 running in home assistant on an iPad.  It seems to be related to the current streaming profile not being found.
  • Loading branch information
bp2008 committed Dec 18, 2023
1 parent 96a1ca2 commit cfa6902
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "263";
var ui_version = "264";
var bi_version = "%%VERSION%%";
var appPath_raw = "%%VIRTDIR%%";
var local_bi_session = "%%SESSION%%";
Expand Down
13 changes: 12 additions & 1 deletion ui3/ui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -14247,7 +14247,14 @@ function SessionManager()
this.CanProfileUseOverrides = function (i)
{
if (typeof i === "undefined" || i === null)
{
i = genericQualityHelper.GetCurrentProfileIndex();
if (i < 0)
{
genericQualityHelper.QualityChoiceChanged('');
i = genericQualityHelper.GetCurrentProfileIndex();
}
}
var p = genericQualityHelper.GetProfileWithIndex(i);
if (p.vcodec === "jpeg")
return true;
Expand Down Expand Up @@ -22323,9 +22330,13 @@ function GenericQualityHelper()
if (self.profiles[i].name === settings.ui3_streamingQuality)
{
if (!self.profiles[i].IsCompatible())
{
toaster.Warning('Streaming Profile "' + settings.ui3_streamingQuality + '\" is not compatible with this browser instance.');
continue;
}
return i;
}
toaster.Warning('Streaming Profile "' + settings.ui3_streamingQuality + '" was not found.');
return -1;
}
this.GetAnyCompatibleProfile = function (didRestoreDefaults)
Expand Down Expand Up @@ -22418,7 +22429,7 @@ function GenericQualityHelper()
}
var NotifyQualitySelectionChanged = function (p)
{
toaster.Info("The active streaming profile has changed to " + p.GetNameEle().html(true), 3000);
toaster.Info("The active streaming profile has changed to " + p.GetNameEle().html(), 3000);
}
this.SetStreamingQualityDropdownBoxItems = function ()
{
Expand Down

0 comments on commit cfa6902

Please sign in to comment.