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

when playing audio, method selectTrack() doesn't work(播放音频时, 无法设定音轨) #13

Open
javaLover1984 opened this issue May 17, 2017 · 0 comments

Comments

@javaLover1984
Copy link

I take a video file(like .rmvb) as a audio file to play, can't set audio track, selectTrack() doesn't work.
the result is at some point you can get different currentPositions by MediaPlayer.getCurrentPosition(). how can I solve this? any tips?
我把一个视频文件(如.rmvb格式)当成音频文件来播放(为的就是只听声音,不看画面), 不能设定音轨, 方法selectTrack()不管用,结果便是在音频播放的过程中想获得某点的进度,通过MediaPlayer.getCurrentPosition()会得到多个不同的结果. 怎么解决这个问题, 有没有什么建议??视频播放的时候是没有此问题的.

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