You Are Here:

Community: Developer Discussion Boards

#1 Old Streaming Player Stop/Start problem - 2006-07-18, 14:45

Join Date: Mar 2003
Posts: 13
finesoft
Offline
Registered User
Hi,

I'm developing a streaming (rtsp) player with mmapi and everything is working fine except for the pause/play action.

When I pause the video, using stop(), the image disappears. When I try to play it again, using start(), it won't do anything. The only way is starting all over again (prefetch, realize....).

I used the basic play/pause functions in the WTK examples (simple calls to stop() and start() inside try/catch), but no exceptiones are thrown.

Does the mmapi player support stop() when using RTSP?

Here is my code for both functions:
Reply With Quote

#2 Old Re: Streaming Player Stop/Start problem - 2006-07-18, 22:04

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Which device you are running your app on? Or are you using emulator?

Also share your code (it was not visible in your previous message.

Have you checked the Java MMAPI examples and docs on Forum Nokia
http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html
http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html
http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

Hartti
Reply With Quote

#3 Old Re: Streaming Player Stop/Start problem - 2006-07-19, 12:49

Join Date: Mar 2003
Posts: 13
finesoft
Offline
Registered User
I'm running the app on a N70.

I've already read through that docs and reviewed the examples and came to no conclusion. There's nothing in the docs about mmapi support to stop/start rtsp streams.

Anyway, I've solved this the hard way, by closing the player and creating a new one. Not a perfect solution but the only one I could find for rtsp.

The code is simple and identical to the one in the examples (like I said in the first post):

void pause()
{
if (player != null)
{
try
{
player.stop();
}
catch (MediaException e)
{
e.printStackTrace();
}
}
}

void play()
{
if (player != null)
{
try
{
player.start();
}
catch (MediaException e)
{
e.printStackTrace();
}
}
}

I'm beginning to think that the problem is mmapi not supporting stop/start an rtsp stream...
Reply With Quote

#4 Old Re: Streaming Player Stop/Start problem - 2007-05-02, 13:22

Join Date: Mar 2007
Posts: 8
ali.sajjad
Offline
Registered User
Quote:
Originally Posted by finesoft
Hi,

I'm developing a streaming (rtsp) player with mmapi and everything is working fine except for the pause/play action.

When I pause the video, using stop(), the image disappears. When I try to play it again, using start(), it won't do anything. The only way is starting all over again (prefetch, realize....).

I used the basic play/pause functions in the WTK examples (simple calls to stop() and start() inside try/catch), but no exceptiones are thrown.

Does the mmapi player support stop() when using RTSP?

Here is my code for both functions:
Hi finesoft,

I am also trying to develop a rtsp player using mmapi in java exactly the way you did it.Though I can recieve rtp packets from the server but unable to play it by passing these packets to player.

Somehow player.realize() is blocking permanently i.e player does not come out of realise. I will appreciate if you could send me some sample code for reference.

Thanks,
Sajjad
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
A Player for streaming Paranoid_Android Mobile Java Media (Graphics & Sounds) 2 2006-07-17 13:50
how to use Real Player plugin for video streaming in our app?? krishnaramram Symbian Media (Graphics & Sounds) 0 2006-06-29 09:03
Audio Player Problem kbrooking Mobile Java General 3 2006-05-12 11:22
m4v Streaming file through Darwin problem ! on nokia 6680 nicokiller2k2 Streaming and Video 2 2005-12-18 18:17
Video streaming & snapshot problem mrborman Mobile Java General 0 2004-12-03 19:19

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