-
Notifications
You must be signed in to change notification settings - Fork 209
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
获取音频时长问题? #36
Comments
可以,用getDuration() API 获取 |
我通过getDuration()获取出来的时间都是0,是怎么回事呀 |
时机不对,在 onAsyncLoading 里面获取 |
这个方法里面获取依然是0额 |
看下代码? |
@OverRide
打印出来的日志: |
老哥你用错了。。。,调用这个 MusicManager.get().getDuration() |
我搞错了 谢谢大佬 |
@JeremyHwc 老哥,你这个 onAsyncLoading 是在activity fragment 中复写的吗,我怎么没找到这个方法呢 |
这是旧版本的方法,现在没了,你有什么问题吗? |
我看到你的示例项目里面,音乐的时长是由后端返回的。
info.setDuration(object.getInt("file_duration") * 1000); //音乐长度
现在我这边需要客户端通过url来获取音频的时长,MusicLibrary可以做到吗?
The text was updated successfully, but these errors were encountered: