scalafx.scene.media

MediaPlayer

Related Docs: object MediaPlayer | package media

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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def audioSpectrumInterval: DoubleProperty

    The interval between spectrum updates in seconds.

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

  7. def audioSpectrumListener: ObjectProperty[AudioSpectrumListener]

    A listener for audio spectrum updates.

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

  9. def audioSpectrumNumBands: IntegerProperty

    The number of bands in the audio spectrum.

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

  11. def audioSpectrumThreshold: IntegerProperty

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

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

  13. def autoPlay: BooleanProperty

    Whether playing should start as soon as possible.

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

  15. def balance: DoubleProperty

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

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

  17. def bufferProgressTime: ReadOnlyObjectProperty[Duration]

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

  18. def clone(): AnyRef

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

    The number of completed playback cycles.

  20. def currentRate: ReadOnlyDoubleProperty

    The current rate of playback regardless of settings.

  21. def currentTime: ReadOnlyObjectProperty[Duration]

    The current media playback time.

  22. def cycleCount: IntegerProperty

    The number of times the media will be played.

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

  24. def cycleDuration: ReadOnlyObjectProperty[Duration]

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

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

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

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

    Definition Classes
    AnyRef
  27. 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
  28. def error: ReadOnlyObjectProperty[javafx.scene.media.MediaException]

    Observable property set to a MediaException if an error occurs.

  29. def finalize(): Unit

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

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

    returns

    The delegate hashcode

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

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

    Retrieves the Media instance being played.

  34. def mute: BooleanProperty

    Whether the player audio is muted.

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

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

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

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

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

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

  40. def onEndOfMedia_=(op: ⇒ Unit): Unit

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

  42. def onError: ObjectProperty[Runnable]

    Event handler invoked when an error occurs.

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

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

  45. def onHalted: ObjectProperty[Runnable]

    Event handler invoked when the status changes to HALTED.

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

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

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

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

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

  50. def onPaused: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PAUSED.

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

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

  53. def onPlaying: ObjectProperty[Runnable]

    Event handler invoked when the status changes to PLAYING.

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

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

  56. def onReady: ObjectProperty[Runnable]

    Event handler invoked when the status changes to READY.

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

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

  59. def onRepeat: ObjectProperty[Runnable]

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

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

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

  62. def onStalled: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STALLED.

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

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

  65. def onStopped: ObjectProperty[Runnable]

    Event handler invoked when the status changes to STOPPED.

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

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

  68. def rate: DoubleProperty

    The rate at which the media should be played.

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

  70. def startTime: ObjectProperty[Duration]

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

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

  72. def status: ReadOnlyObjectProperty[Status]

    The current state of the MediaPlayer.

  73. def stopTime: ObjectProperty[Duration]

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

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

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

    Definition Classes
    AnyRef
  76. def toString(): String

    returns

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

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

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

  78. def volume: DoubleProperty

    The volume at which the media should be played.

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

  80. final def wait(): Unit

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

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