MediaPlayer class provides the controls for playing media. It is used in combination with the
MediaViewer classes to display and control media playing. Note that the
MediaPlayer does not contain any visual elements so must be used with the
MediaView class to view the media. The number of MediaPlayers that can concurrently display media may vary depending on the JavaFX runtime implementation.
status value when player is playing
Status value when player is buffering. Buffering may occur when player is paused or playing
Status value when player is stalled.
Defines the source
Indicated if the player has been paused, either programatically, by the user, or because the media has finished playing
Defines the rate at which the media is being played. Rate
Defines the volume at which the media is being played.
Defines the balance, or left right setting, of the audio output. Value ranges continuously from
The fader, or forward and back setting, of audio output on 4+ channel output. value ranges continuously from
Defines the time offset where media should start playing, or restart from when repeating
Defines the time offset where media should stop playing or restart when repeating
The current media time, may be read to indicate the current position or written to cause the media to seek to the set position. Note that since the variable is being updated by the JavaFX rutime,
the sequence media timers for this player. For each
Defines the number of times the media should repeat. if repeatCount is 1 the media will play once. if it is REPEAT_FOREVER, it will repeat indefinitely
Reflects the current status of the MediaPlayer. The status is one of
The sequence of tracks that are currently enabled on this