You Are Here:

Community: Blogs

Hartti Suomela's Forum Nokia Blog

RTSP and Java on S60

hartti | 16 November, 2006 02:19

Streaming over Real Time Streaming Protocol (RTSP) on Java ME platform is supported on Nokia S60 devices starting from S60 2nd Edition Feature Pack 3 devices. Because of a couple of recent requests coming from different directions I have spent some time troubleshooting and testing streaming MIDlets. Hence I thought a summary would be in order (you can find bits and pieces about this topic through various DiBo-postings though...)

 

If you, like me, do not happen to have any streaming server at hand, the first challenge is to find a stream to test with. I spent a while looking for a suitable one. Here is one URL, which I know is working and should be available also in the future: rtsp://ra.yle.fi/yle24/video/uusin_mobile.rm (the URL is a daily TV news stream from Finland - if the language is garbled, its not the stream but language:-)

Feel free to use whatever compatible URL you have. The stream can be a clip (with a specified length) or a "live" stream. Both work well.

 

The next step is to find a working source to test with. Here is one source, which is not pretty, but gets the work done (this sample contains the same URL as above). Compile it and try it out

 After the initial wait, you should see the video to appear (there are a number of exceptions displayed at certain points - those are there for your enjoyment... err... debugging reasons).

 

Not working? Check what access point you have defined in the Real Player of the device. Java streaming uses that one, and if it is not defined or it is incorrectly defined, the streaming does not work.

 

Still not working? Getting a prefetch error? Might be that there is not enough bandwidth. I got that error when I tried streaming over non-3G cellular data connection.

 

Using your own code, and not getting it working (seeing only the first few frames, possibly hearing some audio, but the video is not moving). Do you use yields in your code? It might be that the stream thread never gets enough processing time to get things done. Try to use either sleeps (or "nothing") instead.

 

 
 

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: qdcZrelationQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fschemasE2fnokiaE2fFNE2d1E2e58E2eowlX qdcZtitleQSxForumE20NokiaE20BlogsE20WebE20SiteXLen qdcZtitleQSxForumE20NokiaE20BlogsE20WebE20SiteXLen qdcZtypeQUqfnZE44istributionQ qdcZtypeQUqfnZSiteQ qdcZtypeQUqvocZTermQ qdcZtypeQUqvocZVocabularyConstructQ qdcZtypeQUqwebZSiteQ qdcZtypeQUqrdfsZE52esourceQ qswZserviceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2furiE71aX quriE71aZserviceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2furiE71aX qvocZpartOfQUqfnZPublicationQ qwebZserviceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2furiE71aX qrdfZtypeQUqfnZE44istributionQ qrdfZtypeQUqfnZSiteQ qrdfZtypeQUqvocZTermQ qrdfZtypeQUqvocZVocabularyConstructQ qrdfZtypeQUqwebZSiteQ qrdfZtypeQUqrdfsZE52esourceQ qrdfsZisE44efinedByQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fschemasE2fnokiaE2fFNE2d1E2e58E2eowlX qrdfsZlabelQSxForumE20NokiaE20BlogsE20WebE20SiteXLen qrdfsZlabelQSxForumE20NokiaE20BlogsE20WebE20SiteXLen qrdfsZseeAlsoQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fschemasE2fnokiaE2fFNE2d1E2e58E2eowlX