1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Improve stream playback on high latency cameras (#72547)

* Disable LL-HLS for HLS sources
* Add extra wait for Nest cameras
This commit is contained in:
uvjustin
2022-06-17 01:48:52 +10:00
committed by GitHub
parent 9687aab802
commit 01a4a83bab
11 changed files with 145 additions and 69 deletions

View File

@@ -91,12 +91,12 @@ def make_segment_with_parts(
):
"""Create a playlist response for a segment including part segments."""
response = []
if discontinuity:
response.append("#EXT-X-DISCONTINUITY")
for i in range(num_parts):
response.append(
f'#EXT-X-PART:DURATION={TEST_PART_DURATION:.3f},URI="./segment/{segment}.{i}.m4s"{",INDEPENDENT=YES" if i%independent_period==0 else ""}'
)
if discontinuity:
response.append("#EXT-X-DISCONTINUITY")
response.extend(
[
"#EXT-X-PROGRAM-DATE-TIME:"