| Reply | « Previous Thread | Next Thread » |
|
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()); } } |
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
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. |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |