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

2

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)

Hearts answered 12/1, 2015 at 23:31 Comment(5)
If you just want to play short "music(s)" I would recommend to use SoundPool instead of MediaPlayer!Sutton
Could you post the complete output line from logcat with that message? I am also wondering if the device/emulator/version you are getting it from matters.Alemannic
@Alemannic i added the lineHearts
Are you actually having an issue? MediaPlayer will commonly spit out random messages. They can usually be ignored.Pease
No i am not having an issue with MediaPlayer just weird warnings (not specified in the doc).Hearts
C
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.

Clownery answered 18/1, 2015 at 18:12 Comment(9)
thanks, i use an .ogg file. Maybe 9xx errors are overlays added by some specific constructor or MediaPlayer source wasn't updated since.Hearts
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 - wiki.xiph.org/OggText#Categories_of_Text_Codecs.Clownery
I tried with an audio/mp4 file and still got the same thing.Hearts
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: techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5Clownery
By audio/mp4 i mean an audio file with mpeg4 formatHearts
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?Clownery
No warning with the mp4 video from the link above.Hearts
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 regardClownery
Thanks ! it's a lot more clear. No luck my bounty expired yesterday :-)Hearts
J
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.

Jackknife answered 12/1, 2015 at 23:34 Comment(2)
@bijiang i didn't find what 973 means. Thanks by the way.Hearts
the link you are refering to does not contain the error codeJeaninejeanlouis

© 2022 - 2024 — McMap. All rights reserved.