public final class

MediaError

extends JavaScriptObject
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.media.dom.client.MediaError

Class Overview

A JavaScriptObject indicating the type of error encountered by a MediaElement.

Experimental API: This API is still under development and is subject to change.

See Also

Summary

Constants
int MEDIA_ERR_ABORTED A constant returned by getCode() indicating that playback was aborted at the user's request.
int MEDIA_ERR_DECODE A constant returned by getCode() indicating that playback was aborted due to an error in decoding.
int MEDIA_ERR_NETWORK A constant returned by getCode() indicating that playback was aborted due to a network error.
int MEDIA_ERR_SRC_NOT_SUPPORTED A constant returned by getCode() indicating that the format of the source stream was unsuitable for playback.
Protected Constructors
MediaError()
Public Methods
int getCode()
Returns an error code indicating the reason for the error.
[Expand]
Inherited Methods
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Constants

public static final int MEDIA_ERR_ABORTED

A constant returned by getCode() indicating that playback was aborted at the user's request.

Constant Value: 1 (0x00000001)

public static final int MEDIA_ERR_DECODE

A constant returned by getCode() indicating that playback was aborted due to an error in decoding.

Constant Value: 3 (0x00000003)

public static final int MEDIA_ERR_NETWORK

A constant returned by getCode() indicating that playback was aborted due to a network error.

Constant Value: 2 (0x00000002)

public static final int MEDIA_ERR_SRC_NOT_SUPPORTED

A constant returned by getCode() indicating that the format of the source stream was unsuitable for playback.

Constant Value: 4 (0x00000004)

Protected Constructors

protected MediaError ()

Public Methods

public int getCode ()

Returns an error code indicating the reason for the error.