Class MediaPlayerEvent

java.lang.Object
java.util.EventObject
javafx.event.Event
one.jpro.platform.media.event.MediaPlayerEvent
All Implemented Interfaces:
Serializable, Cloneable

public class MediaPlayerEvent extends javafx.event.Event
Media player event.
Author:
Besmir Beqiri
See Also:
  • Field Details

    • ANY

      public static final javafx.event.EventType<MediaPlayerEvent> ANY
      Common supertype for all media player's event types.
    • MEDIA_PLAYER_READY

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_READY
      This event occurs when the media player is ready to play.
    • MEDIA_PLAYER_ERROR

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_ERROR
      Fired when there are fatal errors that stop playing.
    • MEDIA_PLAYER_PLAY

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_PLAY
      Fired when media player starts.
    • MEDIA_PLAYER_PAUSE

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_PAUSE
      Fired when media playing is paused.
    • MEDIA_PLAYER_STOP

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_STOP
      Fired when media playing ends, either when the MediaPlayer ends, or after the MediaPlayer.stop() method is called.
    • MEDIA_PLAYER_REPEAT

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_REPEAT
      Fired when the player currentTime reaches stopTime and will be repeating.
    • MEDIA_PLAYER_END_OF_MEDIA

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_END_OF_MEDIA
      Fired when media playback has ended.
    • MEDIA_PLAYER_STALLED

      public static final javafx.event.EventType<MediaPlayerEvent> MEDIA_PLAYER_STALLED
      The stalled event occurs when the media player is trying to get media data, but data is not available.
  • Constructor Details

    • MediaPlayerEvent

      public MediaPlayerEvent(MediaPlayer source, javafx.event.EventType<? extends javafx.event.Event> eventType)
      Creates new instance of MediaPlayerEvent.
      Parameters:
      source - event source
      eventType - event target
  • Method Details

    • getEventType

      public javafx.event.EventType<? extends MediaPlayerEvent> getEventType()
      Overrides:
      getEventType in class javafx.event.Event