| Reply | « Previous Thread | Next Thread » |
|
Hi All,
I am making App to play the Video Files.Target phone is Nokia 6280/N80 but i am using emulater to test it.I store the mpeg file into RES folder of project. Problem is that it is giving follwing error: // if i use InputStream in= getClass().getResourceAsStream("/jimcarry.mpeg"); System.out.println("after input stream"); mPlayer=Manager.createPlayer(in,"video/mpeg"); //Gives IlegalArgumentException // if i use InputStream in= getClass().getResourceAsStream("File:///root1/jimcarry.mpeg"); System.out.println("after input stream"); mPlayer=Manager.createPlayer(in,"video/mpeg"); //Gives IlegalArgumentException / but if i use InputStream in= getClass().getResourceAsStream("/ABC.wav"); System.out.println("after input stream"); mPlayer=Manager.createPlayer(in,"audio/x-wav"); //Gives NullPointerException Please help me out and tell how to run video on Emulator. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Video streaming in j2me and downloads | vikramb_mca | Mobile Java General | 16 | 2009-07-02 19:01 |
| J2ME fullscreen video or launch realplayer | anish_t | Mobile Java Media (Graphics & Sounds) | 2 | 2006-06-20 06:43 |
| Play video on Canvas with N 6600 doesnt work. Please help!!! | Robert111 | Mobile Java Media (Graphics & Sounds) | 2 | 2006-02-22 09:45 |
| Sun ONE Studio 5 Mobile Edition + Nokia Developer's Suite for J2ME, Linux editions | jonmccune | Mobile Java Tools & SDKs | 4 | 2004-02-10 02:49 |
| Is it possible to play video on J2ME? | chizuoka | Mobile Java General | 0 | 2003-04-23 05:41 |