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 Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionstatic UIMediaEvent.Type
Returns 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
loadstart
The loadstart event is fired when the media player has started to load a resource.progress
The progress event is fired periodically as the media player loads a resource.suspend
The suspend event is fired when media data loading has been suspended.abort
The abort event is fired when the resource was not fully loaded, but not as the result of an error.error
The error event is fired when the resource could not be loaded due to an error (for example, a network connectivity problem).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
The stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.loadedmetadata
The loadedmetadata event is fired when the metadata has been loaded.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
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
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
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
The waiting event is fired when playback has stopped because of a temporary lack of data.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
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
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
The durationchange event is fired when the duration attribute has been updated.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
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
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
The ratechange event is fired when the playback rate has changed.resize
The resize event is fired whenever the natural width or natural height of the video changes.volumechange
The volumechange event is fired when either the volume attribute or the muted attribute has changed.
Method Details
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
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 nameNullPointerException
- if the argument is null