Package com.google.gwt.media.dom.client
Class MediaError
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- com.google.gwt.media.dom.client.MediaError
-
public final class MediaError extends JavaScriptObject
A
JavaScriptObject
indicating the type of error encountered by aMediaElement
.Experimental API: This API is still under development and is subject to change.
- See Also:
MediaElement.getError()
-
-
Field Summary
Fields Modifier and Type Field Description static int
MEDIA_ERR_ABORTED
A constant returned bygetCode()
indicating that playback was aborted at the user's request.static int
MEDIA_ERR_DECODE
A constant returned bygetCode()
indicating that playback was aborted due to an error in decoding.static int
MEDIA_ERR_NETWORK
A constant returned bygetCode()
indicating that playback was aborted due to a network error.static int
MEDIA_ERR_SRC_NOT_SUPPORTED
A constant returned bygetCode()
indicating that the format of the source stream was unsuitable for playback.
-
Constructor Summary
Constructors Modifier Constructor Description protected
MediaError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Returns an error code indicating the reason for the error.-
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
-
-
-
Field Detail
-
MEDIA_ERR_ABORTED
public static final int MEDIA_ERR_ABORTED
A constant returned bygetCode()
indicating that playback was aborted at the user's request.- See Also:
- Constant Field Values
-
MEDIA_ERR_NETWORK
public static final int MEDIA_ERR_NETWORK
A constant returned bygetCode()
indicating that playback was aborted due to a network error.- See Also:
- Constant Field Values
-
MEDIA_ERR_DECODE
public static final int MEDIA_ERR_DECODE
A constant returned bygetCode()
indicating that playback was aborted due to an error in decoding.- See Also:
- Constant Field Values
-
MEDIA_ERR_SRC_NOT_SUPPORTED
public static final int MEDIA_ERR_SRC_NOT_SUPPORTED
A constant returned bygetCode()
indicating that the format of the source stream was unsuitable for playback.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public int getCode()
Returns an error code indicating the reason for the error.- Returns:
- one of
MEDIA_ERR_ABORTED
,MEDIA_ERR_NETWORK
,MEDIA_ERR_DECODE
, orMEDIA_ERR_SRC_NOT_SUPPORTED
-
-