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

视频进度监听误差,有什么好的解决方案? #170

Open
zjianflys opened this issue Aug 24, 2021 · 0 comments
Open

视频进度监听误差,有什么好的解决方案? #170

zjianflys opened this issue Aug 24, 2021 · 0 comments

Comments

@zjianflys
Copy link

if (Build.VERSION.SDK_INT >= 18) { outputSurface.drawImage(false); inputSurface.setPresentationTime(info.presentationTimeUs * 1000); //进度监听 if (callback != null) { // 这里的时间是 毫秒 presentationTimeUs 的时间是累加的 以微秒进行一帧一帧的累加 callback.onProgress((float) info.presentationTimeUs / (float) duration * 100); } inputSurface.swapBuffers(); } else {
我在这点加的监听 感觉不是很准

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