Skip to content Skip to sidebar Skip to footer

Mediaplayer Thinks Aac* Audio File Is A Video File?

The code runs fine but way am I geting this Erro log Erro log: 08-28 08:44:24.281: E/MediaPlayer(32454): mOnVideoSizeChangedListener is null. Failed to send MEDIA_SET_VIDEO_SIZE me

Solution 1:

I managed to get rid of the errors by attaching some empty listeners. See setOnPreparedListener() and similiar methods at http://developer.android.com/reference/android/media/MediaPlayer.html

Solution 2:

Do you mean aac? But MediaPlayer does not support aac.

Solution 3:

Do I understand it right, that your app works and you're only wondering about the logged errors? I think that MediaPlayer simply tries to invoke all defined callback methods, regardless of the concrete file/codec. As you can see in your logfile there are several other callbacks that are null too, like mOnCompletionListener and mOnPreparedListener. So I wouldn't be worried too much about that.

Post a Comment for "Mediaplayer Thinks Aac* Audio File Is A Video File?"