scalafx.scene.media

MediaPlayer

final class MediaPlayer extends SFXDelegate[javafx.scene.media.MediaPlayer]

Linear Supertypes
SFXDelegate[javafx.scene.media.MediaPlayer], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MediaPlayer
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MediaPlayer(media: Media)

    Create a player for a specific media.

  2. new MediaPlayer(delegate: javafx.scene.media.MediaPlayer)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def audioSpectrumInterval: DoubleProperty

    The interval between spectrum updates in seconds.

  8. def audioSpectrumInterval_=(v: Double): Unit

  9. def audioSpectrumListener: ObjectProperty[AudioSpectrumListener]

    A listener for audio spectrum updates.

  10. def audioSpectrumListener_=(v: AudioSpectrumListener): Unit

  11. def audioSpectrumNumBands: IntegerProperty

    The number of bands in the audio spectrum.

  12. def audioSpectrumNumBands_=(v: Int): Unit

  13. def audioSpectrumThreshold: IntegerProperty

    The sensitivity threshold in decibels; must be non-positive.

  14. def audioSpectrumThreshold_=(v: Int): Unit

  15. def autoPlay: BooleanProperty

    Whether playing should start as soon as possible.

  16. def autoPlay_=(v: Boolean): Unit

  17. def balance: DoubleProperty

    The balance, or left-right setting, of the audio output.

  18. def balance_=(v: Double): Unit

  19. def bufferProgressTime: ReadOnlyObjectProperty[Duration]

    The current buffer position indicating how much media can be played without stalling the MediaPlayer.

  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def currentCount: ReadOnlyIntegerProperty

    The number of completed playback cycles.

  22. def currentRate: ReadOnlyDoubleProperty

    The current rate of playback regardless of settings.

  23. def currentTime: ReadOnlyObjectProperty[Duration]

    The current media playback time.

  24. def cycleCount: IntegerProperty

    The number of times the media will be played.

  25. def cycleCount_=(v: Int): Unit

  26. def cycleDuration: ReadOnlyObjectProperty[Duration]

    The amount of time between the startTime and stopTime of this player.

  27. val delegate: javafx.scene.media.MediaPlayer

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    MediaPlayerSFXDelegate
  28. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def equals(ref: Any): Boolean

    Definition Classes
    SFXDelegate → AnyRef → Any
  30. def error: ReadOnlyObjectProperty[javafx.scene.media.MediaException]

    Observable property set to a MediaException if an error occurs.

  31. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  33. def hashCode(): Int

    Definition Classes
    SFXDelegate → AnyRef → Any
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def media: javafx.scene.media.Media

    Retrieves the Media instance being played.

  36. def mute: BooleanProperty

    Whether the player audio is muted.

  37. def mute_=(v: Boolean): Unit

  38. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  41. def onEndOfMedia: ObjectProperty[Runnable]

    Event handler invoked when the player currentTime reaches stopTime and is not repeating.

  42. def onEndOfMedia_=(v: Runnable): Unit

  43. def onError: ObjectProperty[Runnable]

    Event handler invoked when an error occurs.

  44. def onError_=(v: Runnable): Unit

  45. def onHalted: ObjectProperty[Runnable]

    Event handler invoked when the status changes to HALTED.

  46. def onHalted_=(v: Runnable): Unit

  47. def onMarker: ObjectProperty[EventHandler[javafx.scene.media.MediaMarkerEvent]]

    Event handler invoked when the player currentTime reaches a media marker.

  48. def onMarker_=(v: EventHandler[javafx.scene.media.MediaMarkerEvent]): Unit

  49. def onPaused: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PAUSED.

  50. def onPaused_=(v: Runnable): Unit

  51. def onPlaying: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PLAYING.

  52. def onPlaying_=(v: Runnable): Unit

  53. def onReady: ObjectProperty[Runnable]

    Event handler invoked when the status changes to READY.

  54. def onReady_=(v: Runnable): Unit

  55. def onRepeat: ObjectProperty[Runnable]

    Event handler invoked when the player currentTime reaches stopTime and will be repeating.

  56. def onRepeat_=(v: Runnable): Unit

  57. def onStalled: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STALLED.

  58. def onStalled_=(v: Runnable): Unit

  59. def onStopped: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STOPPED.

  60. def onStopped_=(v: Runnable): Unit

  61. def rate: DoubleProperty

    The rate at which the media should be played.

  62. def rate_=(v: Double): Unit

  63. def startTime: ObjectProperty[Duration]

    The time offset where media should start playing, or restart from when repeating.

  64. def startTime_=(v: Duration): Unit

  65. def status: ReadOnlyObjectProperty[Status]

    The current state of the MediaPlayer.

  66. def stopTime: ObjectProperty[Duration]

    The time offset where media should stop playing or restart when repeating.

  67. def stopTime_=(v: Duration): Unit

  68. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  69. def toString(): String

    Definition Classes
    SFXDelegate → AnyRef → Any
  70. def totalDuration: ReadOnlyObjectProperty[Duration]

    The total amount of play time if allowed to play until finished.

  71. def volume: DoubleProperty

    The volume at which the media should be played.

  72. def volume_=(v: Double): Unit

  73. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  74. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  75. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SFXDelegate[javafx.scene.media.MediaPlayer]

Inherited from AnyRef

Inherited from Any

Ungrouped