You Are Here:

Community: Developer Discussion Boards

#1 Old gap between two player start - 2007-04-17, 19:13

Join Date: Apr 2007
Posts: 3
pradeep.khannan
Offline
Registered User
Hi,

I have got two audio players in prefetch state and as soon as the first player finishes playing I want the second one to start, but unfortunately there is a gap. Can this gap be minimized. The code I used :

Player player1 = Manager.createPlayer(is,type);
player1.realize();
player1.prefetch();

Player player2 = Manager.createPlayer(is,type);
player2.realize();
player2.prefetch();

player1.start();

while(player1.getState()==Player.STARTED){}

player2.start();

And I even tried with player listener, starting the second player on END_OF_MEDIA event of the first player. Can the gap be reduced further (any code). The device I am testing with is 6630 (6.03.40).

Thanks
Reply With Quote

#2 Old Re: gap between two player start - 2007-04-19, 07:51

Join Date: Aug 2006
Posts: 307
axs
Offline
Regular Contributor
Make a simple test: try to play two music files at the same time, with two different players. If you'll hear the both music files, then there is a chance to remove the gap. Otherwise, IMHO, the mobile platform's native player simply is not able to quickly switch between two media files.

Also try to remember, that the best way to init a player on mobile platform is to simply put a media file URI into the Manager. In this case some mobile platforms are turning on the media playback optimizing techniques, and play media at its best.
Reply With Quote

#3 Old Smile Re: gap between two player start - 2007-04-24, 12:50

Join Date: Apr 2007
Posts: 21
Location: Hyderabad
Send a message via Yahoo to srinivasvurrinkala
srinivasvurrinkala's Avatar
srinivasvurrinkala
Offline
Registered User
Hi
The Gap cannot to be reduced dramatically bcoz its the MMAPI implemetation
thats taking time in order to do some processing for second player to start such as getting the resources. Just we have to wait for a improved implementation of jsr 135
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Create 3GP player with J2ME for Mobile dexxa05 Mobile Java Media (Graphics & Sounds) 53 2008-03-27 20:52
Unable to start Music Player on Emulator titani2 Mobile Java General 2 2007-03-02 14:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ