MediaPlayer status changes

David DeHaven david.dehaven at
Thu Mar 12 19:46:30 UTC 2015

> I don't see anything in the docs stating how status should change in
> MediaPlayer, e.g. will reaching end of media trigger a transition from
> PLAYING to STOPPED? Will a subsequent call to play() start at the beginning
> of the media file or do I need to seek? I was expecting some kind of status
> change on end of media but am not seeing any when playing back an audio
> sample until the end and when I checked the api doc, I didn't find anything
> (e.g. like a state diagram) to check if it's a bug or documented behavior.

The formal documentation is here (read the package Description, link at the top):

There’s actually a flow chart in the docs for MediaPlayer.Status:

Hope that helps.


More information about the openjfx-dev mailing list