java.lang.Object | ||||
↳ | com.google.gwt.core.client.JavaScriptObject | |||
↳ | com.google.gwt.dom.client.Node | |||
↳ | com.google.gwt.dom.client.Element | |||
↳ | com.google.gwt.dom.client.MediaElement |
Known Direct Subclasses |
Common superclass for Audio and Video elements. See W3C HTML5 Video and Audio
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CANNOT_PLAY | Constant returned from canPlayType(String) . |
|||||||||
String | CAN_PLAY_MAYBE | Constant returned from canPlayType(String) . |
|||||||||
String | CAN_PLAY_PROBABLY | Constant returned from canPlayType(String) . |
|||||||||
int | HAVE_CURRENT_DATA | Constant returned from getReadyState() . |
|||||||||
int | HAVE_ENOUGH_DATA | Constant returned from getReadyState() . |
|||||||||
int | HAVE_FUTURE_DATA | Constant returned from getReadyState() . |
|||||||||
int | HAVE_METADATA | Constant returned from getReadyState() . |
|||||||||
int | HAVE_NOTHING | Constant returned from getReadyState() . |
|||||||||
int | NETWORK_EMPTY | Constant returned from getNetworkState() . |
|||||||||
int | NETWORK_IDLE | Constant returned from getNetworkState() . |
|||||||||
int | NETWORK_LOADING | Constant returned from getNetworkState() . |
|||||||||
int | NETWORK_NO_SOURCE | Constant returned from getNetworkState() . |
|||||||||
String | PRELOAD_AUTO | Constant used by getPreload() and setPreload(String) . |
|||||||||
String | PRELOAD_METADATA | Constant used by getPreload() and setPreload(String) . |
|||||||||
String | PRELOAD_NONE | Constant used by getPreload() and setPreload(String) . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Node
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns
true if the native player is capable of playing content of
the given MIME type. | |||||||||||
Returns a
TimeRanges object indicating which portions of the
source have been buffered locally. | |||||||||||
Returns the URL of the current media source, or the empty String
if no source is set.
| |||||||||||
Returns the current time within the source media stream.
| |||||||||||
Returns the default playback rate, where 1.0 corresponds to normal
playback.
| |||||||||||
Returns the duration of the source media stream, in seconds.
| |||||||||||
Returns the type of error that has occurred while attempting to load
and play the media.
| |||||||||||
Returns the time to which the media stream was seeked at the time it was
loaded, in seconds, or 0.0 if the position is unknown.
| |||||||||||
Returns the network state, one of
NETWORK_EMPTY ,
NETWORK_IDLE , NETWORK_LOADING , or
NETWORK_NO_SOURCE . | |||||||||||
Returns the playback rate, where 1.0 corresponds to normal
playback.
| |||||||||||
Returns a
TimeRanges object indicating which portions of the
source have been played. | |||||||||||
Returns the current state of the media with respect to rendering the
current playback position, as one of the constants
HAVE_CURRENT_DATA , HAVE_ENOUGH_DATA ,
HAVE_FUTURE_DATA , HAVE_METADATA , or HAVE_NOTHING
. | |||||||||||
Returns a
TimeRanges object indicating which portions of the
source are seekable. | |||||||||||
Returns the source URL for the media, or
null if none is set. | |||||||||||
Returns the time corresponding to the zero time in the media timeline,
measured in seconds since midnight, January 1 1970 UTC, or
NaN if none is specified. | |||||||||||
Returns the current audio volume setting for the media, as a number
between 0.0 and 1.0.
| |||||||||||
Returns
true if the media player should display interactive
controls (for example, to control play/pause, seek position, and volume),
false otherwise. | |||||||||||
Returns
true if playback has reached the end of the media, false otherwise. | |||||||||||
Returns
true if autoplay is enabled, false otherwise. | |||||||||||
Returns
true if the user agent is to seek back to the start of the
media once playing has ended, false otherwise. | |||||||||||
Returns
true if the volume is to be muted (overriding the normal
volume setting), false otherwise. | |||||||||||
Returns
true if playback is paused, false otherwise. | |||||||||||
Returns
true if the playback position is in the process of changing
discontinuously, e.g., by use of the interactive controls, false
otherwise. | |||||||||||
Causes the resource to be loaded.
| |||||||||||
Causes playback of the resource to be paused.
| |||||||||||
Causes playback of the resource to be started or resumed.
| |||||||||||
Enables or disables autoplay of the resource.
| |||||||||||
Enables or disables interactive controls.
| |||||||||||
Sets the current playback time within the media stream, in seconds.
| |||||||||||
Sets the default playback rate.
| |||||||||||
Enables or disables looping.
| |||||||||||
Enables or disables muting.
| |||||||||||
Sets the playback rate.
| |||||||||||
Sets the source URL for the media.
| |||||||||||
Sets the playback volume.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Element
| |||||||||||
From class
com.google.gwt.dom.client.Node
| |||||||||||
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Constant returned from canPlayType(String)
.
Constant returned from canPlayType(String)
.
Constant returned from canPlayType(String)
.
Constant returned from getReadyState()
.
Constant returned from getReadyState()
.
Constant returned from getReadyState()
.
Constant returned from getReadyState()
.
Constant returned from getReadyState()
.
Constant returned from getNetworkState()
.
Constant returned from getNetworkState()
.
Constant returned from getNetworkState()
.
Constant returned from getNetworkState()
.
Constant used by getPreload()
and setPreload(String)
.
Constant used by getPreload()
and setPreload(String)
.
Constant used by getPreload()
and setPreload(String)
.
Returns true
if the native player is capable of playing content of
the given MIME type.
type | a String representing a MIME type |
---|
CAN_PLAY_PROBABLY
, CAN_PLAY_MAYBE
, or
CANNOT_PLAY
Returns a TimeRanges
object indicating which portions of the
source have been buffered locally.
TimeRanges
instance, or null
.
Returns the URL of the current media source, or the empty String if no source is set.
Returns the current time within the source media stream.
Returns the default playback rate, where 1.0 corresponds to normal playback. If no rate has been set, 1.0 is returned.
Returns the duration of the source media stream, in seconds. If the
duration is unknown, NaN
is returned. For unbounded media
streams, POSITIVE_INFINITY
is returned.
Returns the type of error that has occurred while attempting to load
and play the media. If no error has occurred, null
is returned.
MediaError
instance, or null
Returns the time to which the media stream was seeked at the time it was loaded, in seconds, or 0.0 if the position is unknown.
Returns the network state, one of NETWORK_EMPTY
,
NETWORK_IDLE
, NETWORK_LOADING
, or
NETWORK_NO_SOURCE
.
Returns the playback rate, where 1.0 corresponds to normal playback. If the rate has not been set, 1.0 is returned.
Returns a TimeRanges
object indicating which portions of the
source have been played.
TimeRanges
instance, or null
.
Returns the preload setting, one of PRELOAD_AUTO
,
PRELOAD_METADATA
, or PRELOAD_NONE
.
Returns the current state of the media with respect to rendering the
current playback position, as one of the constants
HAVE_CURRENT_DATA
, HAVE_ENOUGH_DATA
,
HAVE_FUTURE_DATA
, HAVE_METADATA
, or HAVE_NOTHING
.
Returns a TimeRanges
object indicating which portions of the
source are seekable.
TimeRanges
instance, or null
.
Returns the source URL for the media, or null
if none is set.
null
Returns the time corresponding to the zero time in the media timeline,
measured in seconds since midnight, January 1 1970 UTC, or
NaN
if none is specified.
Returns the current audio volume setting for the media, as a number between 0.0 and 1.0.
Returns true
if the media player should display interactive
controls (for example, to control play/pause, seek position, and volume),
false
otherwise.
Returns true
if playback has reached the end of the media, false
otherwise.
Returns true
if autoplay is enabled, false
otherwise. When
autoplay is enabled, the user agent will begin playback automatically as
soon as it can do so without stopping.
Returns true
if the user agent is to seek back to the start of the
media once playing has ended, false
otherwise.
Returns true
if the volume is to be muted (overriding the normal
volume setting), false
otherwise.
Returns true
if the playback position is in the process of changing
discontinuously, e.g., by use of the interactive controls, false
otherwise.
Causes the resource to be loaded.
Causes playback of the resource to be paused.
Causes playback of the resource to be started or resumed.
Enables or disables autoplay of the resource.
autoplay | if true , enable autoplay |
---|
Enables or disables interactive controls.
controls | if true , enable controls |
---|
Sets the current playback time within the media stream, in seconds.
time | a number within the ranges given by getSeekable() |
---|
Changes the preload setting to one of PRELOAD_AUTO
,
PRELOAD_METADATA
, or PRELOAD_NONE
.
preload | a String constants |
---|
Sets the playback volume.
volume | a value between 0.0 (silent) and 1.0 (loudest) |
---|