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

声音卡顿问题 播放卡顿 #183

Open
JerryGan2 opened this issue Sep 29, 2018 · 0 comments
Open

声音卡顿问题 播放卡顿 #183

JerryGan2 opened this issue Sep 29, 2018 · 0 comments

Comments

@JerryGan2
Copy link

参照网上说明编译成功
播放本地部分文件出现声音卡顿,修改- (NSArray *) decodeFrames: (CGFloat) minDuration方法,
//if (_videoStream == -1) {

                        _position = frame.position;
                        decodedDuration += frame.duration;
                        if (decodedDuration > minDuration && ((_videoStream == -1) || (decodedDuration >= decodedVideoDuration) ))
                            finished = YES;
                    //}

声音不卡了,但是出现视频缓冲现象。
从io监视来看,本地文件io分布极度不均匀,经常是0,偶尔突发2M/s读写
内存也是忽高忽低,但是似乎没溢出

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

1 participant