You Are Here:

Community: Developer Discussion Boards

#1 Old javax.microedition.media.MediaException: Realize error: -7002 - 2009-04-02, 08:35

Join Date: Mar 2009
Posts: 12
itismohit
Offline
Registered User
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.
Reply With Quote

#2 Old Re: javax.microedition.media.MediaException: Realize error: -7002 - 2009-04-02, 08:42

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#3 Old Thumbs up Re: javax.microedition.media.MediaException: Realize error: -7002 - 2009-04-02, 11:37

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
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..
Reply With Quote

#4 Old Thumbs up Re: javax.microedition.media.MediaException: Realize error: -7002 - 2009-04-02, 11:38

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
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..
Reply With Quote

#5 Old Re: javax.microedition.media.MediaException: Realize error: -7002 - 2009-04-07, 10:17

Join Date: Mar 2009
Posts: 12
itismohit
Offline
Registered User
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 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
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

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ