| Reply | « Previous Thread | Next Thread » |
|
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: |
|
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 |
|
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... |
|
Quote:
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 |
| ali.sajjad |
| View Public Profile |
| Find all posts by ali.sajjad |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |