问题
I'm implementing a MediaPlayer
. Everything goes smoothly BUT each time I encounter a new error it can be very hard to find its meaning. The official doc is lacking in that area, so a website like stack overflow is the only solution and this time even this does not work (error (1;-107) btw).
So is there a centralized point where I can find the list of all the MediaPlayer error codes ? I can't find it in the official documentation, and it would be tremendously helpful to quickly diagnose new errors.
回答1:
Just go through the pvmf return codes from the link below,
https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h
And the complete explanation of each error from another link below
[Broken]http://sourceforge.net/p/android-x86/korg_external_opencore/ci/master/tree/doc/pvmf_return_codes.pdf
回答2:
There are several places where the errors are defined.
- In theory, everything should be defined in MediaPlayer.java
- but some codes are just defined in C, and not accessible in the Java land, see MediaErrors.h
- and also pvmf_return_codes.h
回答3:
Your can find them in the source code here. And compare your error number with every constants given there
来源:https://stackoverflow.com/questions/13046753/complete-list-of-mediaplayer-error-codes