Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live video is stuck during the playback #5536

Closed
yuriiforlita opened this issue Jun 2, 2023 · 5 comments
Closed

Live video is stuck during the playback #5536

yuriiforlita opened this issue Jun 2, 2023 · 5 comments
Labels

Comments

@yuriiforlita
Copy link

yuriiforlita commented Jun 2, 2023

What do you want to do with Hls.js?

Hi there,
We are facing an issue when live video is stuck during the playback and does not continue playing at all. At this moment we are able to catch these warnings:
[warn] > [stream-controller]: Playback: 65.993 is located too far from the end of live sliding playlist: 702.025, reset currentTime to : 684.025


[warn] > [stream-controller]: Playback: 65.993 is located too far from the end of live sliding playlist: 714.025, reset currentTime to : 696.025

[warn] > [stream-controller]: Playback: 65.993 is located too far from the end of live sliding playlist: 720.025, reset currentTime to : 702.025

I am not clear why Playback time not changing to currentTime if it was reset ^^

Playlist info:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:128132
#EXT-X-DISCONTINUITY-SEQUENCE:13
#EXT-X-INDEPENDENT-SEGMENTS

Player settings:

debug: true,

  liveSyncDurationCount: 6,
  testBandwidth: false,
  forceKeyFrameOnDiscontinuity: false,
   startLevel: -1, 
   maxLiveSyncPlaybackRate: 2, 
   maxBufferHole: 5,
   maxFragLookUpTolerance: 0,
   highBufferWatchdogPeriod: 1, 
   liveDurationInfinity: true,

Could you please help me to figure out why this is happening?

What have you tried so far?

No response

@yuriiforlita yuriiforlita added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Jun 2, 2023
@robwalch
Copy link
Collaborator

robwalch commented Jun 2, 2023

I am not clear why Playback time not changing to currentTime if it was reset ^^
liveDurationInfinity: true,

Verify video.seekable TimeRange, and please include player version and full debug logs with bug reports.

@yuriiforlita
Copy link
Author

yuriiforlita commented Jun 2, 2023

@robwalch
Thank you for your reply!
Player version:
"hls.js": "1.4.3",

If the debug flag will be true, will this be enough for full debug logs with bug reports?

@yuriiforlita
Copy link
Author

yuriiforlita commented Jun 6, 2023

Hi @robwalch

[warn] > Playback stalling at @77.437 due to low buffer ({"len":6.707999999999998,"start":0.06,"end":84.145})
hls.min.js:1 [warn] > [playback-rate-controller]: Stall detected, adjusting target latency
appBundle.es5.js:19944 OnPlayerStatusChanged playing
hls.min.js:1 [warn] > playback not stuck anymore @77.638, after 799ms
hls.min.js:1 [warn] > Playback stalling at @78.639 due to low buffer ({"len":5.506,"start":0.06,"end":84.145})
hls.min.js:1 [warn] > [playback-rate-controller]: Stall detected, adjusting target latency
hls.min.js:1 [warn] > playback not stuck anymore @79.506, after 700ms
hls.min.js:1 [log] > [level-controller]: Loading level index 2 with URI 1/1 ChunkLink/profile_1/chunklist.m3u8
hls.min.js:1 [log] > [level-controller]: live playlist 2 MISSED
hls.min.js:1 [log] > [level-controller]: reload live playlist 2 in 3169 ms
hls.min.js:1 [log] > [stream-controller]: Level 2 loaded [181682,181684][part-181684--1], cc [18, 18] duration:18.018
hls.min.js:1 [log] > [buffer-controller]: Media Source duration is set to Infinity
hls.min.js:1 [log] > [level-controller]: Loading level index 2 with URI 1/1 ChunkLink/profile_1/chunklist.m3u8
hls.min.js:1 [warn] > Playback stalling at @83.61 due to low buffer ({"len":0.5349999999999966,"start":0.06,"end":84.145})
hls.min.js:1 [warn] > [playback-rate-controller]: Stall detected, adjusting target latency
hls.min.js:1 [log] > [level-controller]: live playlist 2 MISSED
hls.min.js:1 [log] > [level-controller]: reload live playlist 2 in 2267 ms
hls.min.js:1 [log] > [stream-controller]: Level 2 loaded [181682,181684][part-181684--1], cc [18, 18] duration:18.018
hls.min.js:1 [warn] > [stream-controller]: Playback: 83.610 is located too far from the end of live sliding playlist: 108.186, reset currentTime to : 90.168
hls.min.js:1 [warn] > playback not stuck anymore @84.145, after 1411ms
hls.min.js:1 [log] > [buffer-controller]: Media Source duration is set to Infinity
hls.min.js:1 [log] > [stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [audio-stream-controller]: media seeking to 84.145, state: STOPPED
hls.min.js:1 [log] > [subtitle-stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [level-controller]: Loading level index 2 with URI 1/1 ChunkLink/profile_1/chunklist.m3u8
hls.min.js:1 [log] > [level-controller]: live playlist 2 REFRESHED 181685--1
hls.min.js:1 [log] > [level-controller]: reload live playlist 2 in 6765 ms
hls.min.js:1 [log] > [stream-controller]: Level 2 loaded [181683,181685][part-181685--1], cc [18, 18] duration:18.018
hls.min.js:1 [warn] > [stream-controller]: Playback: 84.145 is located too far from the end of live sliding playlist: 114.19200000000001, reset currentTime to : 96.174
hls.min.js:1 [log] > [buffer-controller]: Media Source duration is set to Infinity
hls.min.js:1 [log] > [stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [audio-stream-controller]: media seeking to 84.145, state: STOPPED
hls.min.js:1 [log] > [subtitle-stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [level-controller]: Loading level index 2 with URI 1/1 ChunkLink/profile_1/chunklist.m3u8
hls.min.js:1 [log] > [level-controller]: live playlist 2 REFRESHED 181686--1
hls.min.js:1 [log] > [level-controller]: reload live playlist 2 in 6596 ms
hls.min.js:1 [log] > [stream-controller]: Level 2 loaded [181684,181686][part-181686--1], cc [18, 18] duration:18.018
hls.min.js:1 [warn] > [stream-controller]: Playback: 84.145 is located too far from the end of live sliding playlist: 120.19800000000001, reset currentTime to : 102.180
hls.min.js:1 [log] > [buffer-controller]: Media Source duration is set to Infinity
hls.min.js:1 [log] > [stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [audio-stream-controller]: media seeking to 84.145, state: STOPPED
hls.min.js:1 [log] > [subtitle-stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [level-controller]: Loading level index 2 with URI 1/1 ChunkLink/profile_1/chunklist.m3u8
hls.min.js:1 [log] > [level-controller]: live playlist 2 REFRESHED 181687--1
hls.min.js:1 [log] > [level-controller]: reload live playlist 2 in 6741 ms
hls.min.js:1 [log] > [stream-controller]: Level 2 loaded [181685,181687][part-181687--1], cc [18, 18] duration:18.018
hls.min.js:1 [warn] > [stream-controller]: Playback: 84.145 is located too far from the end of live sliding playlist: 126.20400000000001, reset currentTime to : 108.186
hls.min.js:1 [log] > [buffer-controller]: Media Source duration is set to Infinity
hls.min.js:1 [log] > [stream-controller]: media seeking to 84.145, state: IDLE
hls.min.js:1 [log] > [audio-stream-controller]: media seeking to 84.145, state: STOPPED
hls.min.js:1 [log] > [subtitle-stream-controller]: media seeking to 84.145, state: IDLE

robwalch added a commit that referenced this issue Jun 6, 2023
@robwalch
Copy link
Collaborator

robwalch commented Jun 6, 2023

Hi @yuriiforlita,

Could you run the build for #5548 to report what video.seekable.start(0) and video.seekable.end(0) are being set to?

Also can you update the description to include the details we ask for in the Bug Report Template (hls.js version, Browser/OS name and version? Some of the stalls look related to your streams playlist updates, but some where the buffer is over a second long (Playback stalling at @78.639 due to low buffer ({"len":5.506,) could be an issue with the browser reporting stalls when there is no issue with playback. Please also provide complete logs. These show stalling and level loading details, but there is no evidence of fragment loading. There was some, as there is media in the buffer, but you did not include it.

robwalch added a commit that referenced this issue Jun 6, 2023
@yuriiforlita
Copy link
Author

yuriiforlita commented Jun 8, 2023

@robwalch We can close this conversation, the issue was identified
Thank you

@robwalch robwalch removed the Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants