| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am working on a project of mobile TV. I am using following URL to access a .3gp file placed on Helix server on my LAN. rtsp://172.16.15.10:5544/VODPLAYLIST.3gp?enc=FirstEncoding&mno=MNO11&uid=9a11c4b01f3f11de8e680004760EED88&rid=Dummy-1238474280146&svc=Product_Id_1&msi=172161002&ply=plLst_id_ag_45&tsl=30&tok=Karl&iver=1&ttl=99999&tim=1238646889599&key=b-649l-gxYnqeVsV2cSXiw** When the player tries to realize() it throws following error : javax.microedition.media.MediaException: Realize error: -7002 I have no idea for what is the probable reason for this error code. please help. Note: I am using S60 3rd edition SDK. When I open this URL directly, it is able to stream But whne I access it via my application it gives above error. |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
How you are creating the player..Since the underlined exception is thrown only when if the Player cannot be realized... please check the URL length..too while calling the same..I guess it can be a URL issue. Thanks R a j - The K e r n e l |
|
Please post the sequence follow by u to create and start ur player. Are u realizing the same before prefetching it ? Please check and post the code if u can..
thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
Please post the sequence follow by u to create and start ur player. Are u realizing the same before prefetching it ? Please check and post the code if u can..
Are u facing the same problems with some other handsets too. thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
Hi,
Hi raj_J2ME, jitu_goldie to verify if this is the URL length issue, I made a small Java application and used following URL to create the player. I have a helix server installed on this location. This is a public IP accessible to all. "rtsp://220.227.175.10:5544/VODPLAYLIST.3gp?enc=FirstEncoding&mno=MNO11&uid=7c882b50204311de80e80004760EED88&rid=Dummy-1238474280159&svc=Product_Id_1&msi=19216824826&ply=plLst_id_ag_45&tsl=30&tok=Karl&iver=1&ttl=99999&tim=1238758509192&key=OdO-Aeevlfn2M9j4SSt6tQ**" The application had following behaviour on different platforms: 1. Sun WTK2.5.2 : Cannot create player, because the device does not support rtsp protocol. 2. S60 3rd edition FP1 : realize error -7002 3. On my mobile, Sony ericcson w850i : It was able to create the player, and play the video. 1. Can someone please help me on following issue. 2. Can someone please throw some light on the intricacies or reference implementation of realize() method. The code is as follows : import javax.microedition.media.*; import javax.microedition.media.control.VideoControl; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.lang.Thread.*; public class StreamVideo extends MIDlet implements Runnable, PlayerListener, CommandListener { Display d; Form f; Alert a; Command exit, start; Thread streamThread; Player vp; VideoControl vc; public StreamVideo() { d = Display.getDisplay(this); f = new Form("Stream test"); exit = new Command("Exit", Command.EXIT, 1); start = new Command("Start streaming", Command.OK, 1); f.addCommand(exit); f.addCommand(start); f.setCommandListener(this); } protected void destroyApp(boolean p1) { try { vp.stop(); vp.close(); } catch( Exception e ) { log("Exception: " + e.toString()); } notifyDestroyed(); } protected void startApp( ) { d.setCurrent(f); streamThread = new Thread(this); } protected void pauseApp() { } public void run() { doTheStream(); } public void playerUpdate(Player p1, String p2, Object p3) { log("playerUpdate: " + p2); } public void commandAction(Command c1, Displayable d1) { if (c1 == start) { streamThread.start(); } else { destroyApp(true); } } public void log(String msg){ a = new Alert("Exception", msg, null, AlertType.CONFIRMATION); d.setCurrent(a, f); } public void doTheStream() { try{ log("creating player"); Thread t=Thread.currentThread(); t.sleep(5000); vp = Manager.createPlayer("rtsp://220.227.175.10:5544/VODPLAYLIST.3gp?enc=FirstEncoding&mno=MNO11&uid=7c882b50204311de80e80004760EED88&rid=Dummy-1238474280159&svc=Product_Id_1&msi=19216824826&ply=plLst_id_ag_45&tsl=30&tok=Karl&iver=1&ttl=99999&tim=1238758509192&key=OdO-Aeevlfn2M9j4SSt6tQ**"); log("player created"); t.sleep(5000); vp.addPlayerListener(this); vp.realize(); log("player realized"); t.sleep(5000); vc = (VideoControl)vp.getControl("VideoControl"); if (vc != null) { f.append((Item)vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, null)); vc.setDisplaySize(176,144); vc.setDisplayLocation(0,0); } vp.start(); log("player started"); t.sleep(5000); }catch(Exception e){ log("Exception: " + e.toString()); } } } |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| realize error on video streaming client | hypatia | Mobile Java Media (Graphics & Sounds) | 8 | 2008-11-03 21:04 |
| VideoStreaming player realize takes too long | cristi.mota | Mobile Java Media (Graphics & Sounds) | 3 | 2008-10-03 11:29 |
| own CCoeControl to realize an always on top icon | grapentin | Symbian User Interface | 45 | 2008-08-07 13:45 |
| how to realize switch off key function? | arthur722 | General Symbian C++ | 15 | 2008-04-07 16:18 |
| Realize phonebook in S60 | cdutly | General Symbian C++ | 0 | 2006-12-22 14:28 |