14

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)

Makyen
  • 31,849
  • 12
  • 86
  • 121
issathink
  • 1,220
  • 1
  • 15
  • 25

2 Answers2

12

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.

Community
  • 1
  • 1
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
  • thanks, i use an .ogg file. Maybe 9xx errors are overlays added by some specific constructor or MediaPlayer source wasn't updated since. – issathink Jan 18 '15 at 18:35
  • Yes I would absolutely blame the rendering of the file myself, as it's an .ogg, text can be embedded in the file through various codecs - http://wiki.xiph.org/OggText#Categories_of_Text_Codecs. – Daniel Wilson Jan 18 '15 at 19:17
  • I tried with an audio/mp4 file and still got the same thing. – issathink Jan 18 '15 at 20:11
  • By audio/mp4 do you mean an mp3 and then an mp4? I don't know enough about these things but I would be interested to see if you got the same error with the mp4 sample located here: http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5 – Daniel Wilson Jan 23 '15 at 22:46
  • By audio/mp4 i mean an audio file with mpeg4 format – issathink Jan 23 '15 at 23:11
  • That's what I thought which makes more sense, so did you try it with the sample mp4 to see if you still get the error? – Daniel Wilson Jan 23 '15 at 23:34
  • 1
    No warning with the mp4 video from the link above. – issathink Jan 24 '15 at 00:48
  • 1
    Awesome :) That means for certain it is an error with the file(s) you are trying to play, rather than the device or your code. Depending on your circumstances now you could examine how the files are / were created, or google means of stripping unnecessary info from the file - I'm sure cmd programs like ffmpeg would be helpful in this regard – Daniel Wilson Jan 24 '15 at 01:02
  • Thanks ! it's a lot more clear. No luck my bounty expired yesterday :-) – issathink Jan 24 '15 at 01:26
0

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.

bjiang
  • 6,068
  • 2
  • 22
  • 35