Skip to main content

How to resume play after DataStarvedEvent

5 replies [Last post]
vinaykagarwal
Offline
Joined: 2006-01-14

Hello,

I thought player.start() would do it but it doesn't. I couldn't find examples by googling. I would appreciate guidance related to pause/play/fastforward/rewind. Thanks.

Regards,
Vinay Agarwal

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice

I agree with Stan on this. In our experience, player.start() is the
appropriate call here. Of course, the previously missing data must be
present by the time start() is called. ;)

Joe

On 16 Sep 2009, at 2:28 PM, bd-j-dev@mobileandembedded.org wrote:

> This is about progressive playlists, right?
>
> The spec requires the JMF player to be stopped after a
> DataStarvedEvent, so I thought that start() is the way to go, since
> setRate() won't resume playback by itself.
>
> Stan
> [Message sent by forum member 'stanavzan' (Stanislav.Avzan@sun.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=364299
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

vinaykagarwal
Offline
Joined: 2006-01-14

Thanks guys - player.start() does work after the media has been restored and enabled.
Vinay

billf
Offline
Joined: 2004-02-13

I believe javax.media.Player.setRate() has what you need.

stanavzan
Offline
Joined: 2006-11-07

This is about progressive playlists, right?

The spec requires the JMF player to be stopped after a DataStarvedEvent, so I thought that start() is the way to go, since setRate() won't resume playback by itself.

Stan

billf
Offline
Joined: 2004-02-13

Oh, could be... I was assuming that a DataStarvedEvent did something equivalent to pressing the "pause" button, but I've never looked into this in detail.