| Reply | « Previous Thread | Next Thread » |
|
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] |
| pixDeveloper |
| View Public Profile |
| Find all posts by pixDeveloper |
|
Hi,
Which phone are you using Soku |
|
Im using Nokia 6233
|
| pixDeveloper |
| View Public Profile |
| Find all posts by pixDeveloper |
|
if u please check the folder resource u hav or not.
otherwise please use lik this getClass().getResourceAsStream("/Mozart1.mid"); |
| logesh.kandasamy |
| View Public Profile |
| Find all posts by logesh.kandasamy |
|
sorry for the mistake ur extension.midi file or .mid file.please check the property of the file.
|
| logesh.kandasamy |
| View Public Profile |
| Find all posts by logesh.kandasamy |
|
I solved thanks for ur cooperation
thanks alot |
| pixDeveloper |
| View Public Profile |
| Find all posts by pixDeveloper |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |