mediaplayer not playing completly

All your problems with Audio, Video and Images.

mediaplayer not playing completly

Postby css4 » Thu Jul 07, 2011 5:52 pm

when playing the audio file on emulator, it throws an error(ERROR/MP3Extractor(33): Unable to resync. Signalling end of stream.) before completion. Hence cannot hear the full audio.
Please help me to resolve this.
css4
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 20, 2011 3:12 pm

Top

Re: mediaplayer not playing completly

Postby abhijitphatak28 » Fri Jul 08, 2011 7:51 am

Is this happened with all MP3 files or with a specified one. Also, is this a streaming application or playing a MP3 file from the SDCard or from the network ?

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: mediaplayer not playing completly

Postby css4 » Fri Jul 08, 2011 11:55 am

yes, it happens with all mp3 files. Its an application which has all mp3 files in its resources.
css4
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 20, 2011 3:12 pm

Re: mediaplayer not playing completly

Postby abhijitphatak28 » Mon Jul 11, 2011 12:56 pm

If you could post your code, that will help us to get the exact problem.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: mediaplayer not playing completly

Postby css4 » Mon Jul 11, 2011 3:27 pm

Its normal...creating the media player, starting and onCompletion releasing.

MediaPlayer mplayer = MediaPlayer.create(this, id_of_audiofile_in_raw_folder);
mplayer .start();
public void onCompletion(MediaPlayer mplayer ) {
mplayer .release();
}

// Details in logcat :
DEBUG/AudioSink(33): bufferCount (4) is too small and increased to 12
ERROR/MP3Extractor(33): Unable to resync. Signalling end of stream.
css4
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 20, 2011 3:12 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 25 guests