Skip to main content

PlayList End Event...

5 replies [Last post]
bddeveloper
Offline
Joined: 2008-01-14
Points: 0

Hello,

I was wondering which event and listener I should use to find out when a PlayList ends?

Thank you,

Scott

Reply viewing options

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

Scott,

One way to do it is to use

javax.media.ControllerListener

and listen for

javax.media.EndOfMediaEvent

Cheers,
Joe

>
> On Mar 22, 2008, at 12:03 PM, bd-j-dev@mobileandembedded.org wrote:
> Hello,
>
> I was wondering which event and listener I should use to find out
> when a PlayList ends?
>
> Thank you,
>
> Scott
> [Message sent by forum member 'bddeveloper' (bddeveloper)]

---------------------------------------------------------------------
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

bddeveloper
Offline
Joined: 2008-01-14
Points: 0

Hello Joe,

Ok great that is working when the playlist ends then I am trying to play a new one using the PlayListChangeControl object and the method selectPlayList.
However this is not playing the playlist. It doesn't throw an exception and the BDLocator that is returned for the playlist is not null. Is there another way I should be using to play the playlist?

Thank you,

Scott

PlaybackControl should be a PlayListChangeControl

Message was edited by: bddeveloper

Joe Rice

Do you mean PlayListChangeControl? PlaybackControl is used for
skipping around within a playlist, when the player is started.
PlayListChangeControl is used to change PlayLists in a stopped player.

Cheers,
Joe

On Mar 22, 2008, at 1:02 PM, bd-j-dev@mobileandembedded.org wrote:

> Hello Joe,
>
> Ok great that is working when the playlist ends then I am trying
> to play a new one using the PlaybackControl object and the method
> selectPlayList.
> However this is not playing the playlist. It doesn't throw an
> exception and the BDLocator that is returned for the playlist is not
> null. Is there another way I should be using to play the playlist?
>
> Thank you,
>
> Scott
> [Message sent by forum member 'bddeveloper' (bddeveloper)]
>
> http://forums.java.net/jive/thread.jspa?messageID=265322
>
> ---------------------------------------------------------------------
> 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

bddeveloper
Offline
Joined: 2008-01-14
Points: 0

Yes, PlaybackControl should be a PlayListChangeControl.

Thank you,

Scott

Joe Rice

Hmm, are you making sure the player is in stopped state? It may be
that you should explicitly stop the player before selecting a new
playlist. I don't recall off the top of my head right now.

Cheers,
Joe

On Mar 22, 2008, at 1:17 PM, bd-j-dev@mobileandembedded.org wrote:

> Yes, PlaybackControl should be a PlayListChangeControl.
>
> Thank you,
>
> Scott
> [Message sent by forum member 'bddeveloper' (bddeveloper)]
>
> http://forums.java.net/jive/thread.jspa?messageID=265326
>
> ---------------------------------------------------------------------
> 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