We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好 感谢你贡献的代码。发现录制进度回调的实现有点小瑕疵:
private void writeSampleData(int track, MediaCodec.BufferInfo buffer, ByteBuffer encodedData) { ... if (!eos && mCallback != null) { mCallback.onRecording(buffer.presentationTimeUs); } ... }
也就是说在写入音频和视频数据都会导致回调,音视和视频各自的时间是线性递增,但是一起回调就有可能有时间交错
The text was updated successfully, but these errors were encountered:
是有可能发生,其实这里加个回调只是为了外部能够有时长提示而已。。。 你有什么好的建议吗?
Sorry, something went wrong.
可以考虑保存最近回调的时间,若最新的回调时间大于该值,则允许回调,并更新最近回调时间;若最新回调时间小于该值,则不处理
No branches or pull requests
你好 感谢你贡献的代码。发现录制进度回调的实现有点小瑕疵:
也就是说在写入音频和视频数据都会导致回调,音视和视频各自的时间是线性递增,但是一起回调就有可能有时间交错
The text was updated successfully, but these errors were encountered: