Skip to main content

Repositioning play location after DataStarvedEvent

2 replies [Last post]
vinaykagarwal
Offline
Joined: 2006-01-14
Points: 0

Hello,

What is a robust way to reposition play location after a DataStarvedEvent (so that play can be continued from another location)? PlaybackControl's skipToMark or skipToPlayItem don't work. Recreating the player of course works but I can't make anything else work. Any suggestions?

Regards,
Vinay Agarwal

Reply viewing options

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

Since the player is in stopped state have you tried player.start()
before skipping to a mark or playitem? If this doesn't work you could
create a new player from a BDLocator url like
bd://PLAYLIST:00000.ITEM:2 and start this one instead.

In any case this won't be a seamless transition so you might wan't to
add a mechanism to notice data loss before the end of a playitem is
reached and a DataStarvedEvent is thrown. Then you could pause the
player or skip somewhere else right away.

---------------------------------------------------------------------
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
Points: 0

Gunnar,

That is it! BDLocator with item works. Thanks a lot.

Regards,
Vinay Agarwal