gapless MediaPlayer...

All your problems with Audio, Video and Images.

Postby beausejour » Wed Nov 18, 2009 9:42 am

Aggiornamento wrote:to beausejour:

i came out with this problem to, but i already managed to minimalist the gap time between the 2 media player.. when the 1st player is playing, you must call prepare() on the 2nd player ( in other thread ). then seek the currentPossision(), then play the 2nd player.

i know there still a gap between those player, but atleast, it's not that much..

hope this help.


Thanks Aggiornamento, i found this solution too, but it still have like 0.5-1 second gap, i'm keeping find an optimized solution, and i'm sure it exists, because several radio app on the market did realize it.
beausejour
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Apr 15, 2008 4:04 pm
Location: France

Top

Postby purvi » Tue Dec 15, 2009 8:21 pm

any solutions to the above problem?

Using 2 mediaplayer instances and jumping between the two results in either a jerk or overlap audio at the time of shift. Even though somtimes one might not notice it, but its not the acceptable.

Does using android native code help?

@ medicalfix
you have posted this problem quite a long time ago. Can you please let us know how you overcome it??

Thanks.
Regards,
Purvi
purvi
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Oct 19, 2009 2:52 pm

Postby clarityisgood » Mon Apr 05, 2010 9:30 pm

Did anyone find a solution for this problem?
clarityisgood
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Apr 05, 2010 9:29 pm

Postby Aggiornamento » Tue Apr 06, 2010 3:07 am

@clarityisgood

at this moment, i guess Android still haven't do update about the media player which can support direct push byte array into the media player. :(
Aggiornamento
Freshman
Freshman
 
Posts: 9
Joined: Wed Nov 18, 2009 8:44 am
Location: Singapore

Postby SeraphimSerapis » Wed Apr 14, 2010 8:13 pm

how do apps like tuneswiki or droidlive solve the problem - there must be an solution.
i'm working with 2 mediaplayers also but there is a tiny gap..
SeraphimSerapis
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Mar 11, 2009 10:57 pm

Postby Aggiornamento » Thu Apr 15, 2010 3:09 am

they might be making their own class using native programing written on C or C++, then using that class to support their needed, check this out about android native developer tools : http://developer.android.com/intl/de/sdk/ndk/index.html
Aggiornamento
Freshman
Freshman
 
Posts: 9
Joined: Wed Nov 18, 2009 8:44 am
Location: Singapore

Top

Postby SeraphimSerapis » Thu Apr 15, 2010 6:36 am

Another approach could be using a local rtsp server.. but I don't really know how to code a rtsp-server ;)
Any ideas?
SeraphimSerapis
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Mar 11, 2009 10:57 pm

Postby eduaquiles » Thu Apr 22, 2010 2:20 pm

You could use AudioTrack and play the buffer directly...

But you still need to decode mp3 to pcm... (And I don't know if we need to reinvent the well or not...)
eduaquiles
Freshman
Freshman
 
Posts: 2
Joined: Thu Apr 22, 2010 2:14 pm
Location: Porto Alegre

Top
Previous

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests