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

When upgrading from 5.1.2 to 5.8 directly, the video.buffered.length> 1 problem occurred, causing the video to freeze #367

Open
talentmail opened this issue Jan 20, 2021 · 2 comments

Comments

@talentmail
Copy link

Upgrade from 5.1.2 to 5.8 directly, the same sample code runs normally under version 5.1.2, but video freezes in 5.8, Tracking found that under version 5.8, video.buffered.length> 1, but under version 5.1 There is no such problem video.buffered.length == 1
The same problem exists when upgrading 5.1.2 directly to 5.2.1. Is there anything that needs special attention when upgrading from 5.1.2 to a higher version?

@gkatsev
Copy link
Member

gkatsev commented Jan 21, 2021

Can you provide a reduced test case?

@talentmail
Copy link
Author

talentmail commented Jan 27, 2021

Can you provide a reduced test case?

Thank you for your reply

Question reproduction demo: https://jsfiddle.net/bdyrjaxh/
Version: 5.9.1
Sometimes freezes at :64.680388, the video status is:
video.buffered.length : 1
video.buffered.start(0) : 0.022721
video.buffered.end(0) : 596.495
video.currentTime : 64.680388

Sometimes freezes at : 68.240524, the video status is:
video.buffered.length : 1
video.buffered.start(0) : 0.022721
video.buffered.end(0) : 596.495
video.currentTime : 68.240524

And so on, not always at a certain point in time

For some other m3u8 sources, there will be video.buffered.length > 1
For example, the m3u8 source output by the following ffmpeg command will appear: video.buffered.length=2
ffmpeg -threads 2 -i src.mp4 -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -c:v copy -c:a copy -f hls -hls_list_size 65 -hls_time 10 test.m3u8

But there will be no problems in 5.1.2

=========================================
Behaving normally demo: https://jsfiddle.net/3jfq2hu5/
Version: 5.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants