You Are Here:

Community: Developer Discussion Boards

#1 Old Audio Problem - 2007-05-02, 15:16

Join Date: Jan 2007
Posts: 15
Location: Pune,India
gtemgire
Offline
Registered User
I am trying to play audio files using j2me.
I am using MMAPI.

First I have used .mp3.
String url_audio = "http://219.91.231.122:8080/im_comp/i1.mp3";
connection = (ContentConnection) Connector.open(url_audio.toString())
InputStream is=null;
is= connection.openInputStream();
player = Manager.createPlayer(is,"audio/mpeg");
player.realize();
player.start();

It gives exception on creation of player for WTK2.2 And
It creates player and starts but doesn't get sound on device 6681.

Secondly I have used .wav
String url_audio = "http://219.91.231.122:8080/im_comp/i1.wav";
connection = (ContentConnection) Connector.open(url_audio.toString())
InputStream is=null;
is= connection.openInputStream();
player = Manager.createPlayer(is,"audio/x-wav");
player.realize();
player.start();

It works well for WTK2.2
But
It creates player and starts but doesn't get sound on device 6681.

Please give me proper direction .
Thank You.
Reply With Quote

#2 Old Re: Audio Problem - 2007-05-03, 05:30

Join Date: Jan 2007
Posts: 15
Location: Pune,India
gtemgire
Offline
Registered User
please give some direction.
Reply With Quote

#3 Old Re: Audio Problem - 2007-05-03, 13:29

Join Date: Aug 2005
Posts: 44
nimishjain15882
Offline
Registered User
You might have been receiving an OutOfMemory Error....
MMAPI caches the complete data before any playback starts....

Try catching the OutOfMemory Error and then see what happens...



regards
nimish
Reply With Quote

#4 Old Re: Audio Problem - 2007-05-04, 06:07

Join Date: Jan 2007
Posts: 15
Location: Pune,India
gtemgire
Offline
Registered User
I have handle it but no exception throw of that kind.
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
Problem in playing in an audio file. PankajNeve General Symbian C++ 3 2007-03-09 14:52
Half Duplex Audio Streaming subhrajyotisaha Symbian Media (Graphics & Sounds) 0 2006-05-25 05:39
Audio problem with Nokia 6600 paulmig001 Audio 0 2006-02-20 18:38
nokia 6630 audio problem aditya.raut Mobile Java General 0 2005-06-15 10:17
problem about audio files in UI40 prawwaree Symbian Media (Graphics & Sounds) 1 2005-04-18 05:22

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