Skip navigation links
Overview
Class
Use
Tree
New
Deprecated
Index
Search
Help
JavaFX 24
javafx.media
javafx.scene.media
MediaPlayer
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Nested Class Summary
Property Summary
Field Summary
Constructor Summary
Method Summary
Property Details
error
onError
autoPlay
rate
currentRate
volume
balance
startTime
stopTime
cycleDuration
totalDuration
currentTime
status
bufferProgressTime
cycleCount
currentCount
mute
onMarker
onEndOfMedia
onReady
onPlaying
onPaused
onStopped
onHalted
onRepeat
onStalled
audioSpectrumNumBands
audioSpectrumInterval
audioSpectrumThreshold
audioSpectrumListener
Field Details
INDEFINITE
Constructor Details
MediaPlayer(Media)
Method Details
getAudioEqualizer()
getError()
errorProperty()
setOnError(Runnable)
getOnError()
onErrorProperty()
getMedia()
setAutoPlay(boolean)
isAutoPlay()
autoPlayProperty()
play()
pause()
stop()
setRate(double)
getRate()
rateProperty()
getCurrentRate()
currentRateProperty()
setVolume(double)
getVolume()
volumeProperty()
setBalance(double)
getBalance()
balanceProperty()
setStartTime(Duration)
getStartTime()
startTimeProperty()
setStopTime(Duration)
getStopTime()
stopTimeProperty()
getCycleDuration()
cycleDurationProperty()
getTotalDuration()
totalDurationProperty()
getCurrentTime()
currentTimeProperty()
seek(Duration)
getStatus()
statusProperty()
getBufferProgressTime()
bufferProgressTimeProperty()
setCycleCount(int)
getCycleCount()
cycleCountProperty()
getCurrentCount()
currentCountProperty()
setMute(boolean)
isMute()
muteProperty()
setOnMarker(EventHandler)
getOnMarker()
onMarkerProperty()
setOnEndOfMedia(Runnable)
getOnEndOfMedia()
onEndOfMediaProperty()
setOnReady(Runnable)
getOnReady()
onReadyProperty()
setOnPlaying(Runnable)
getOnPlaying()
onPlayingProperty()
setOnPaused(Runnable)
getOnPaused()
onPausedProperty()
setOnStopped(Runnable)
getOnStopped()
onStoppedProperty()
setOnHalted(Runnable)
getOnHalted()
onHaltedProperty()
setOnRepeat(Runnable)
getOnRepeat()