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

support infinite buff #1373

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

support infinite buff #1373

wants to merge 5 commits into from

Conversation

gimhol
Copy link
Contributor

@gimhol gimhol commented Apr 23, 2021

加了这些代码后,行为与原来没有区别。

但当调用AVPlayer的setIsAudioBufferInfinite与setIsVideoBufferInfinite将两个变量设置为true时,将使QtAV的播放功能有ffplay带上infbuf参数一样的行为:不再限制缓冲队列的长度。

在mdk-sdk中相关的讨论:wang-bin/mdk-sdk#23

@gimhol
Copy link
Contributor Author

gimhol commented Apr 23, 2021

这么改后,setIsAudioBufferInfinite(true),会导致seek不正常,还需要再看看。
用了有点奇怪的方式修复了seek的问题…
简单测试了小且长的mp3(6MB 10分钟)、比较大的视频(3GB 4小时,设置setIsVideoBufferInfinite会有问题)、RTMP拉流(rtmp://58.200.131.2:1935/livetv/cctv1)

@gimhol gimhol closed this Apr 23, 2021
@gimhol gimhol reopened this Apr 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant