Skip to content

Commit

Permalink
Add UI for Improvements for local livestream caching and bugfixes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
lenoxys committed May 25, 2022
1 parent d1fcf22 commit e94ff5d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
24 changes: 20 additions & 4 deletions homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,21 +407,37 @@ <h3 class="text-center">
<label class="form-check-label" for="cc-forcerefreshsnap">Force Refresh Snapshot</label>
</div>

<small class="form-text text-muted">When enabled, we will start stream for one
frame and use
<small class="form-text text-muted">When enabled, we will start stream for one frame and use
as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy
Cloud API one (which could be really old).</small>

<hr />

<div class="form-check">
<input class="form-check-input" type="checkbox" id="cc-useCachedLocalLivestream">
<label class="form-check-label" for="cc-useCachedLocalLivestream">Improve livestream
caching</label>
</div>

<small class="form-text text-muted">Improvements for local livestream caching and
bugfixes.Local livestreams will be kept alive for a fixed duration (up to 45 seconds at
the moment) after the last instance ended the transmission. This allows consecutive
transmissions to start up much faster, but also may increase power consumption for
battery powered devices. Also local livestreams will be started immediately after an
event (motion, person, doorbell) was triggered, so that start up times are
decreased.</small>

<hr />

<div class="form-check">
<input class="form-check-input" type="checkbox" id="cc-rtsp">
<label class="form-check-label" for="cc-rtsp">Use RTSP</label>
</div>

<small id="cc-help-rtsp" class="form-text text-muted">Improve getting live stream by using
RTSP</small>
<small id="cc-help-rtsp" class="form-text text-muted">RTSP must be enable within Eufy App first</small>
<small id="cc-help-rtsp" class="form-text text-muted">RTSP must be enable within Eufy App
first</small>
<small id="cc-help-rtsp" class="form-text text-muted">This setting may not be working with
no compatible device such as Doorbell or Floodlight</small>
</div>
Expand Down Expand Up @@ -660,4 +676,4 @@ <h3 class="text-center">

</div>

<script type="text/javascript" src="js/main.js?v=2.0.0-beta.2"></script>
<script type="text/javascript" src="js/main.js?v=2.0.0-beta.8"></script>
1 change: 1 addition & 0 deletions homebridge-ui/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var CameraConfig = {
"rtsp": true,
"unbridge": true,
"forcerefreshsnap": false,
"useCachedLocalLivestream": false,
"videoConfig": {
"debug": false,
"audio": true,
Expand Down

0 comments on commit e94ff5d

Please sign in to comment.