Class/Object

scalafx.scene.media

MediaPlayer

Related Docs: object MediaPlayer | package media

Permalink

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

Source
MediaPlayer.scala
Linear Supertypes
SFXDelegate[javafx.scene.media.MediaPlayer], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaPlayer
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MediaPlayer(media: Media)

    Permalink

    Create a player for a specific media.

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

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def audioSpectrumInterval: DoubleProperty

    Permalink

    The interval between spectrum updates in seconds.

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

    Permalink
  7. def audioSpectrumListener: ObjectProperty[AudioSpectrumListener]

    Permalink

    A listener for audio spectrum updates.

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

    Permalink
  9. def audioSpectrumNumBands: IntegerProperty

    Permalink

    The number of bands in the audio spectrum.

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

    Permalink
  11. def audioSpectrumThreshold: IntegerProperty

    Permalink

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

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

    Permalink
  13. def autoPlay: BooleanProperty

    Permalink

    Whether playing should start as soon as possible.

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

    Permalink
  15. def balance: DoubleProperty

    Permalink

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

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

    Permalink
  17. def bufferProgressTime: ReadOnlyObjectProperty[Duration]

    Permalink

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

  18. def clone(): AnyRef

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

    Permalink

    The number of completed playback cycles.

  20. def currentRate: ReadOnlyDoubleProperty

    Permalink

    The current rate of playback regardless of settings.

  21. def currentTime: ReadOnlyObjectProperty[Duration]

    Permalink

    The current media playback time.

  22. def cycleCount: IntegerProperty

    Permalink

    The number of times the media will be played.

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

    Permalink
  24. def cycleDuration: ReadOnlyObjectProperty[Duration]

    Permalink

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

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

    Permalink

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

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

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

    Permalink

    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]

    Permalink

    Observable property set to a MediaException if an error occurs.

  29. def finalize(): Unit

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

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

    Permalink

    returns

    The delegate hashcode

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

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

    Permalink

    Retrieves the Media instance being played.

  34. def mute: BooleanProperty

    Permalink

    Whether the player audio is muted.

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

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

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

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

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

    Permalink

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

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

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

    Permalink
  42. def onError: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when an error occurs.

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

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

    Permalink
  45. def onHalted: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to HALTED.

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

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

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

    Permalink

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

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

    Permalink
  50. def onPaused: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to PAUSED.

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

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

    Permalink
  53. def onPlaying: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to PLAYING.

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

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

    Permalink
  56. def onReady: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to READY.

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

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

    Permalink
  59. def onRepeat: ObjectProperty[Runnable]

    Permalink

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

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

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

    Permalink
  62. def onStalled: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to STALLED.

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

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

    Permalink
  65. def onStopped: ObjectProperty[Runnable]

    Permalink

    Event handler invoked when the status changes to STOPPED.

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

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

    Permalink
  68. def rate: DoubleProperty

    Permalink

    The rate at which the media should be played.

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

    Permalink
  70. def startTime: ObjectProperty[Duration]

    Permalink

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

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

    Permalink
  72. def status: ReadOnlyObjectProperty[Status]

    Permalink

    The current state of the MediaPlayer.

  73. def stopTime: ObjectProperty[Duration]

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  76. def toString(): String

    Permalink

    returns

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

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

    Permalink

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

  78. def volume: DoubleProperty

    Permalink

    The volume at which the media should be played.

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

    Permalink
  80. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Inherited from AnyRef

Inherited from Any

Ungrouped