You Are Here:

Community: Developer Discussion Boards

#1 Old problems about playing music - 2008-09-25, 14:31

Join Date: Dec 2005
Posts: 26
02060515
Offline
Registered User
Hi,All:
I encounter a problem when i write an application playing music.The problem is that:
When i create a player with a file locator:"file:///C:/predefgallery/predefmusic/听妈妈的话.mp3",when run it on Nokia 8600 luna ,the jvm throws an exception "javax.microedition.media.MediaException:Invalid locator" , bug if i create a player with the locator "file:///C:/predefgallery/predefmusic/newMessageNotify.amr" ,every thing goes well.
Can anybody help me solve this problem.I appreciate your kindness very much.
Blow is my code snippet
//fileURL="file:///C:/predefgallery/predefmusic/听妈妈的话.mp3";//error
fileURL="file:///C:/predefgallery/predefmusic/newMessageNotify.amr";//ok

private void playMusicByURL(String url){
try {
Player player=Manager.createPlayer(url);
player.realize();
player.prefetch();
player.start();

} catch (Exception e) {
append(e.toString());
}
}
Reply With Quote

#2 Old Re: problems about playing music - 2008-09-25, 14:51

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Hi,

A probable cause for this might be the fact that the file name contains Chinese characters. Try naming it with conventional characters and see if it works.
Reply With Quote

#3 Old Re: problems about playing music - 2008-09-26, 03:24

Join Date: Dec 2005
Posts: 26
02060515
Offline
Registered User
hi,
bogdan.galiceanu:
Thanks very much.As you say,when i change the name of the song into english, i can play it on Nokia 8600 now.
Now the problem is that:when invoke createPlayer() with the file url containing chinese name,why it throws "javax.microedition.media.MediaException:Invalid locator",how can I solve this problem??
Thanks again.
Last edited by 02060515 : 2008-09-26 at 03:49.
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
E65 Music Player Problems mattoleson General Discussion 0 2007-09-08 11:32
some problems about debug the music player in the emulator team-vx General Symbian C++ 4 2007-08-24 03:02
Suggestions and Complaints regarding Music Organization on Nokia E61 Optikalusion General Discussion 0 2007-06-09 15:49
File not playing after Answering a call using CTelephony. vishalm General Symbian C++ 1 2006-11-30 05:16

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