Enum Class UIMediaEvent.Type

java.lang.Object
java.lang.Enum<UIMediaEvent.Type>
com.iizix.api.ui.UIMediaEvent.Type
All Implemented Interfaces:
Serializable, Comparable<UIMediaEvent.Type>, Constable
Enclosing class:
UIMediaEvent

public static enum UIMediaEvent.Type extends Enum<UIMediaEvent.Type>
Enum for event type.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The abort event is fired when the resource was not fully loaded, but not as the result of an error.
    The canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
    The canplaythrough event is fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
    The durationchange event is fired when the duration attribute has been updated.
    The emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.
    The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.
    The error event is fired when the resource could not be loaded due to an error (for example, a network connectivity problem).
    The loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame/milliseconds.
    The loadedmetadata event is fired when the metadata has been loaded.
    The loadstart event is fired when the media player has started to load a resource.
    The pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the media player pause() method.
    The play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute.
    The playing event is fired after playback is first started, and whenever it is restarted.
    The progress event is fired periodically as the media player loads a resource.
    The ratechange event is fired when the playback rate has changed.
    The resize event is fired whenever the natural width or natural height of the video changes.
    The seeked event is fired when a seek operation completed, the current playback position has changed, and the Boolean seeking attribute is changed to false.
    The seeking event is fired when a seek operation starts, meaning the Boolean seeking attribute has changed to true and the media is seeking a new position.
    The stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
    The suspend event is fired when media data loading has been suspended.
    The timeupdate event is fired when the time indicated by the currentTime attribute has been updated.
    The volumechange event is fired when either the volume attribute or the muted attribute has changed.
    The waiting event is fired when playback has stopped because of a temporary lack of data.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • loadstart

      public static final UIMediaEvent.Type loadstart
      The loadstart event is fired when the media player has started to load a resource.
    • progress

      public static final UIMediaEvent.Type progress
      The progress event is fired periodically as the media player loads a resource.
    • suspend

      public static final UIMediaEvent.Type suspend
      The suspend event is fired when media data loading has been suspended.
    • abort

      public static final UIMediaEvent.Type abort
      The abort event is fired when the resource was not fully loaded, but not as the result of an error.
    • error

      public static final UIMediaEvent.Type error
      The error event is fired when the resource could not be loaded due to an error (for example, a network connectivity problem).
    • emptied

      public static final UIMediaEvent.Type emptied
      The emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.
    • stalled

      public static final UIMediaEvent.Type stalled
      The stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
    • loadedmetadata

      public static final UIMediaEvent.Type loadedmetadata
      The loadedmetadata event is fired when the metadata has been loaded.
    • loadeddata

      public static final UIMediaEvent.Type loadeddata
      The loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame/milliseconds.
    • canplay

      public static final UIMediaEvent.Type canplay
      The canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
    • canplaythrough

      public static final UIMediaEvent.Type canplaythrough
      The canplaythrough event is fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
    • playing

      public static final UIMediaEvent.Type playing
      The playing event is fired after playback is first started, and whenever it is restarted. For example it is fired when playback resumes after having been paused or delayed due to lack of data.
    • waiting

      public static final UIMediaEvent.Type waiting
      The waiting event is fired when playback has stopped because of a temporary lack of data.
    • seeking

      public static final UIMediaEvent.Type seeking
      The seeking event is fired when a seek operation starts, meaning the Boolean seeking attribute has changed to true and the media is seeking a new position.
    • seeked

      public static final UIMediaEvent.Type seeked
      The seeked event is fired when a seek operation completed, the current playback position has changed, and the Boolean seeking attribute is changed to false.
    • ended

      public static final UIMediaEvent.Type ended
      The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.
    • durationchange

      public static final UIMediaEvent.Type durationchange
      The durationchange event is fired when the duration attribute has been updated.
    • timeupdate

      public static final UIMediaEvent.Type timeupdate
      The timeupdate event is fired when the time indicated by the currentTime attribute has been updated. The event frequency is dependent on the system load, but will be thrown between about 4Hz and 66Hz (assuming the event handlers don't take longer than 250ms to run).
    • play

      public static final UIMediaEvent.Type play
      The play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute.
    • pause

      public static final UIMediaEvent.Type pause
      The pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the media player pause() method.
    • ratechange

      public static final UIMediaEvent.Type ratechange
      The ratechange event is fired when the playback rate has changed.
    • resize

      public static final UIMediaEvent.Type resize
      The resize event is fired whenever the natural width or natural height of the video changes.
    • volumechange

      public static final UIMediaEvent.Type volumechange
      The volumechange event is fired when either the volume attribute or the muted attribute has changed.
  • Method Details

    • values

      public static UIMediaEvent.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UIMediaEvent.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null