You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy realize error on video streaming client - 2008-10-05, 11:37

Join Date: Apr 2008
Posts: 7
hypatia
Offline
Registered User
Hi, i am using S60 3rd Edition FP1 sdk. I want to develop a streaming client in Java (midlet) that can play videos (3gpp and MP4) using rtsp protocol. For that i have setup Drawin Streaming Server as well and it is working fine ( i checked it with QuickTime Player, VLC player and Real Time player in emulator). Here is my code:

public void start() {
try {

player = Manager.createPlayer(url);
player.addPlayerListener(this);

if (player.getState() == player.UNREALIZED) {
player.realize();
// Grab the video control and set it to the current display.
}
control = (VideoControl) player.getControl("VideoControl");
if (control != null) {
control.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
control.setDisplaySize(176, 144);
int width = control.getSourceWidth();
int height = control.getSourceHeight();
status2 = "Before: SW=" + width + "-SH=" + height + "-DW=" + control.getDisplayWidth() + "-DH=" + control.getDisplayHeight();
}

if (player.getState() == player.REALIZED) {
player.start();
}
} catch (IOException e) {
Alert erro = new Alert("IO Exception :", e.getMessage(), null, AlertType.ERROR);
Display.getDisplay(midlet).setCurrent(erro);
} catch (MediaException me) {
Alert erro = new Alert("Media Exception :", me.getMessage(), null, AlertType.ERROR);
Display.getDisplay(midlet).setCurrent(erro);
} catch (SecurityException se) {
Alert erro = new Alert("Security Exception :", se.getMessage(), null, AlertType.ERROR);
Display.getDisplay(midlet).setCurrent(erro);
} catch (Exception e) {
Alert erro = new Alert("Erro", e.getMessage(), null, AlertType.ERROR);
Display.getDisplay(midlet).setCurrent(erro);
}
}

----------------------------------
if (mCanvas == null)
{
mCanvas = new VideoCanvas(this, "rtsp://localhost:554/sample_50kbit.3gp");

}
Display display = Display.getDisplay(this);
//display.setCurrent(form);

display.setCurrent(mCanvas);

Now, whenever i run this midlet it is giving me Exception of "realize error -7002". Note: I am also self signing the midlet.
Please help anyone.
Reply With Quote

#2 Old Re: realize error on video streaming client - 2008-10-05, 22:19

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
From the release notes of that SDK

Quote:

JSR 135: Mobile Media API

-------------------------

- Problems may occur when developing Java applications which use

multimedia, e.g. problems when creating sound loops or controlling tune

timing in mobile Java games or when playing video streaming over rtsp

protocol by mobile Java.



Workarounds:

- use S60 device hardware (S60 3rd Edition Feature Pack 1) for testing

- use S60 3rd Edition SDK for Symbian OS, for MIDP
Hartti
Reply With Quote

#3 Old Re: realize error on video streaming client - 2008-10-06, 08:09

Join Date: Apr 2008
Posts: 7
hypatia
Offline
Registered User
Hartti, this means if i want to test my streaming on emulator , i have to install S60 3rdEdition SDK ? I don't understand this, as i am using S60 3rd Edition Feature Pack 1 sdk.
Reply With Quote

#4 Old Re: realize error on video streaming client - 2008-10-16, 09:38

Join Date: Apr 2008
Posts: 7
hypatia
Offline
Registered User
can anyone help me with it? i want to test my streaming on emulator
Reply With Quote

#5 Old Re: realize error on video streaming client - 2008-10-21, 07:08

Join Date: Mar 2008
Posts: 51
laili_aidi
Offline
Regular Contributor
Quote:
Originally Posted by hypatia View Post
if (mCanvas == null)
{
mCanvas = new VideoCanvas(this, "rtsp://localhost:554/sample_50kbit.3gp");

}
Display display = Display.getDisplay(this);
//display.setCurrent(form);

display.setCurrent(mCanvas);

Now, whenever i run this midlet it is giving me Exception of "realize error -7002". Note: I am also self signing the midlet.
Please help anyone.
maybe u should know,
that j2me can not support RTSP/RTP protocol yet.
u should make ur own code to send/receive RTSP message to server and parse payload from RTP packet to play that to ur video player. RTSP is run under TCP connection and RTP is under UDP connection, so u can use datagram and socket connection

may it help.

-Regards-
Laili Aidi
Reply With Quote

#6 Old Re: realize error on video streaming client - 2008-10-21, 16:07

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
laili_aidi,

Your statement is incorrect. RTSP streaming is supported both on Series 40 (3rd Ed FP2 ->) and S60 platforms (2nd Ed FP3 ->)

Hartti
Reply With Quote

#7 Old Re: realize error on video streaming client - 2008-10-22, 03:45

Join Date: Mar 2008
Posts: 51
laili_aidi
Offline
Regular Contributor
hartti,,
i get ur point but not really understand how implement that. i've send u email,and hope u can reply that. since im not succes with RTSP/RTP protocol with java, but only wuth input stream.

regards
adek aidi
Reply With Quote

#8 Old Re: realize error on video streaming client - 2008-11-03, 08:19

Join Date: Apr 2008
Posts: 7
hypatia
Offline
Registered User
Ok, Harti and Adek , what i realize from your comments is in-order to stream videos to my nokia mobile (S60 2rd Ed FP3) i have to work with Symbian C++, so that i can get low level functions to work with. Is that right?

If anybody has done successful video streaming using Java, please email me on (owais_zahid@hotmail.com) or post on this Thread.

-owais
Reply With Quote

#9 Old Re: realize error on video streaming client - 2008-11-03, 21:04

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
I do not know what you mean by low-level functions... but rtsp streaming works on S60 2nd Edition FP3 devices in Java ME as well.

Hartti
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
Help:Audio streaming using Audio Proxy Server(APS) conflicts with Video guh02 Streaming and Video 1 2009-02-19 14:53
Nokia VPN Client on N95 and Video Streaming problems Wajahat General Discussion 0 2007-12-10 13:42

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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