|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JavaScriptObject com.google.gwt.media.dom.client.MediaError
public final class MediaError
A JavaScriptObject
indicating the type of error encountered by a
MediaElement
.
Experimental API: This API is still under development and is subject to change.
MediaElement.getError()
Field Summary | |
---|---|
static int |
MEDIA_ERR_ABORTED
A constant returned by getCode() indicating that playback
was aborted at the user's request. |
static int |
MEDIA_ERR_DECODE
A constant returned by getCode() indicating that playback
was aborted due to an error in decoding. |
static int |
MEDIA_ERR_NETWORK
A constant returned by getCode() indicating that playback
was aborted due to a network error. |
static int |
MEDIA_ERR_SRC_NOT_SUPPORTED
A constant returned by getCode() indicating that the format
of the source stream was unsuitable for playback. |
Constructor Summary | |
---|---|
protected |
MediaError()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MEDIA_ERR_ABORTED
getCode()
indicating that playback
was aborted at the user's request.
public static final int MEDIA_ERR_NETWORK
getCode()
indicating that playback
was aborted due to a network error.
public static final int MEDIA_ERR_DECODE
getCode()
indicating that playback
was aborted due to an error in decoding.
public static final int MEDIA_ERR_SRC_NOT_SUPPORTED
getCode()
indicating that the format
of the source stream was unsuitable for playback.
Constructor Detail |
---|
protected MediaError()
Method Detail |
---|
public int getCode()
MEDIA_ERR_ABORTED
,
MEDIA_ERR_NETWORK
, MEDIA_ERR_DECODE
,
or MEDIA_ERR_SRC_NOT_SUPPORTED
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |