You Are Here:

Community: Developer Discussion Boards

#1 Old player.start() Media exception - 2007-10-25, 11:26

Join Date: Oct 2007
Posts: 3
pixDeveloper
Offline
Registered User

Hi,
Im getting problem in playing midi file. This application does not give any exception on emulator. Problem occurs when i strats on phone after installation. The MediaException occcurs when the p.start() function calls. I added api permissions and my midlet is signed. Can uplease help me
my code snippet is givenbelow,

this.checkContentType("file");
if(bool)
{
try{
in = getClass().getResourceAsStream("/resource/Mozart1.mid");
p = Manager.createPlayer(in,"audio/midi");
p.realize();
p.prefetch();
p.addPlayerListener(this);
}catch(Exception ex){
Display.getDisplay(this).setCurrent(new Alert("Exception ",(ex.toString()),null,AlertType.WARNING));
}

try
{
p.start();
} catch (Exception ex)
{
Display.getDisplay(this).setCurrent(new Alert("Start",(ex.toString()),null,AlertType.WARNING));
}

} else {
Display.getDisplay(this).setCurrent(new Alert("","Content type Not supported",null,AlertType.WARNING));
}

please help me,
[/size][/size]
Reply With Quote

#2 Old Re: player.start() Media exception - 2007-10-25, 12:54

Join Date: Feb 2006
Posts: 689
soku123
Offline
Super Contributor
Hi,
Which phone are you using
Soku
Reply With Quote

#3 Old Re: player.start() Media exception - 2007-10-25, 13:07

Join Date: Oct 2007
Posts: 3
pixDeveloper
Offline
Registered User
Im using Nokia 6233
Reply With Quote

#4 Old Re: player.start() Media exception - 2007-10-25, 13:53

Join Date: Oct 2007
Posts: 24
logesh.kandasamy
Offline
Registered User
if u please check the folder resource u hav or not.
otherwise please use lik this
getClass().getResourceAsStream("/Mozart1.mid");
Reply With Quote

#5 Old Re: player.start() Media exception - 2007-10-25, 13:55

Join Date: Oct 2007
Posts: 24
logesh.kandasamy
Offline
Registered User
sorry for the mistake ur extension.midi file or .mid file.please check the property of the file.
Reply With Quote

#6 Old Re: player.start() Media exception - 2007-10-25, 13:58

Join Date: Oct 2007
Posts: 3
pixDeveloper
Offline
Registered User
I solved thanks for ur cooperation
thanks alot
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
VS.Net 2003 Carbide 2.01 and epoc32.exe ValentinK Carbide.c++ IDE and plug-ins 2 2007-01-12 13:31
Security Exception on N6280 for creating directory on media card break10ose Mobile Java Media (Graphics & Sounds) 6 2006-08-01 01:28
SIP content type hlothman Symbian Networking & Messaging 8 2006-05-17 10:26
media intensive app - Hell Bug.(s60- 3650) EridanMan Mobile Java Media (Graphics & Sounds) 0 2005-04-21 04:27
can not successfully link any sample using .NET lobotomat Symbian Tools & SDKs 2 2002-08-20 01:29

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