scalafx.scene.media

MediaPlayer

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

Source
MediaPlayer.scala
Linear Supertypes
SFXDelegate[javafx.scene.media.MediaPlayer], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
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

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    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( classOf[java.lang.Throwable] )
  32. final def getClass(): Class[_]

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

    returns

    The delegate hashcode

    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_=(op: ⇒ Unit): Unit

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

  44. def onError: ObjectProperty[Runnable]

    Event handler invoked when an error occurs.

  45. def onError_=(op: ⇒ Unit): Unit

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

  47. def onHalted: ObjectProperty[Runnable]

    Event handler invoked when the status changes to HALTED.

  48. def onHalted_=(op: ⇒ Unit): Unit

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

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

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

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

  52. def onPaused: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PAUSED.

  53. def onPaused_=(op: ⇒ Unit): Unit

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

  55. def onPlaying: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PLAYING.

  56. def onPlaying_=(op: ⇒ Unit): Unit

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

  58. def onReady: ObjectProperty[Runnable]

    Event handler invoked when the status changes to READY.

  59. def onReady_=(op: ⇒ Unit): Unit

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

  61. def onRepeat: ObjectProperty[Runnable]

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

  62. def onRepeat_=(op: ⇒ Unit): Unit

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

  64. def onStalled: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STALLED.

  65. def onStalled_=(op: ⇒ Unit): Unit

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

  67. def onStopped: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STOPPED.

  68. def onStopped_=(op: ⇒ Unit): Unit

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

  70. def rate: DoubleProperty

    The rate at which the media should be played.

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

  72. def startTime: ObjectProperty[Duration]

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

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

  74. def status: ReadOnlyObjectProperty[Status]

    The current state of the MediaPlayer.

  75. def stopTime: ObjectProperty[Duration]

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

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

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

    Definition Classes
    AnyRef
  78. def toString(): String

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

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

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

  80. def volume: DoubleProperty

    The volume at which the media should be played.

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

  82. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. 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