What does MediaPlayer info/warning (973, 0) mean?

I'm using MediaPlayer to play a lot of short music in my app, but I got this warning in my logcat:

MediaPlayer info/warning (973, 0).

What does this warning mean? I searched around (in the documentation and on Google) but nothing comes up.

Also, I released the MediaPlayer 'properly'.

EDIT:

01-18 18:43:22.662: W/MediaPlayer(24940): info/warning (973, 0)


Good question, the codes are somewhat buried. You will not find out what 973 is specifically, but it falls under the 9xx branch of error codes outlined in the media.h source here.

What's really interesting is the 9xx errors are the only ones not referenced in the documentation, but they are labelled MEDIA_INFO_TIMED_TEXT_ERROR .

The description is that the player:

Failed to handle timed text track properly.

Now what that means is also a good question to which I don't have the answer :)

But I guess either it expects or cannot parse some kind of timed text track with the music file itself. Is it an mp4 or 3gp by any chance? There is some more info in this SO question. But I believe it's related to a subtitle track in the media, which wouldn't make any sense for a purely audio track, but maybe there is an .srt file or similar in the vicinity of the track it's trying to parse.


973, 0 means

int what, int extra

what - the type of info or warning.

extra - an extra code, specific to the info. Typically implementation dependent.

For more details, please refer here.

链接地址: http://www.djcxy.com/p/61390.html

上一篇: MediaPlayer在启动后有1次滞后

下一篇: MediaPlayer info / warning(973,0)是什么意思?