Package com.iizix.api.ui
Enum Class UIMediaEvent.Type
- All Implemented Interfaces:
- Serializable,- Comparable<UIMediaEvent.Type>,- Constable
- Enclosing class:
- UIMediaEvent
Enum for event type.
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe 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 SummaryModifier and TypeMethodDescription- static UIMediaEvent.TypeReturns the enum constant of this class with the specified name.- static UIMediaEvent.Type[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- loadstartThe loadstart event is fired when the media player has started to load a resource.
- progressThe progress event is fired periodically as the media player loads a resource.
- suspendThe suspend event is fired when media data loading has been suspended.
- abortThe abort event is fired when the resource was not fully loaded, but not as the result of an error.
- errorThe error event is fired when the resource could not be loaded due to an error (for example, a network connectivity problem).
- emptiedThe 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.
- stalledThe stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
- loadedmetadataThe loadedmetadata event is fired when the metadata has been loaded.
- loadeddataThe loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame/milliseconds.
- canplayThe 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.
- canplaythroughThe 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.
- playingThe 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.
- waitingThe waiting event is fired when playback has stopped because of a temporary lack of data.
- seekingThe 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.
- seekedThe seeked event is fired when a seek operation completed, the current playback position has changed, and the Boolean seeking attribute is changed to false.
- endedThe 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.
- durationchangeThe durationchange event is fired when the duration attribute has been updated.
- timeupdateThe 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).
- playThe 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.
- pauseThe 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.
- ratechangeThe ratechange event is fired when the playback rate has changed.
- resizeThe resize event is fired whenever the natural width or natural height of the video changes.
- volumechangeThe volumechange event is fired when either the volume attribute or the muted attribute has changed.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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