GWT 2.7.0

com.google.gwt.dom.client
Class VideoElement

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.Node
          extended by com.google.gwt.dom.client.Element
              extended by com.google.gwt.dom.client.MediaElement
                  extended by com.google.gwt.dom.client.VideoElement

@TagName(value="video")
public class VideoElement
extends MediaElement

Video element.

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

See Also:
W3C HTML 5 Specification

Field Summary
static java.lang.String TAG
          The tag for this element.
static java.lang.String TYPE_MP4
          The audio type of MP4 encoded video.
static java.lang.String TYPE_OGG
          The audio type of Ogg encoded video.
static java.lang.String TYPE_WEBM
          The audio type of WebM encoded audio.
 
Fields inherited from class com.google.gwt.dom.client.MediaElement
CAN_PLAY_MAYBE, CAN_PLAY_PROBABLY, CANNOT_PLAY, HAVE_CURRENT_DATA, HAVE_ENOUGH_DATA, HAVE_FUTURE_DATA, HAVE_METADATA, HAVE_NOTHING, NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO_SOURCE, PRELOAD_AUTO, PRELOAD_METADATA, PRELOAD_NONE
 
Fields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE
 
Fields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
 
Constructor Summary
protected VideoElement()
           
 
Method Summary
 int getHeight()
          Gets the height of the element.
 java.lang.String getPoster()
          Returns a poster URL.
 int getVideoHeight()
          Gets the intrinsic height of video within the element.
 int getVideoWidth()
          Gets the instrinsic width of the video within the element.
 int getWidth()
          Gets the width of the element.
 void setHeight(int height)
          Sets the height of the element.
 void setPoster(java.lang.String url)
          Sets the poster URL.
 void setWidth(int width)
          Sets the width of the element.
 
Methods inherited from class com.google.gwt.dom.client.MediaElement
canPlayType, getBuffered, getCurrentSrc, getCurrentTime, getDefaultPlaybackRate, getDuration, getError, getInitialTime, getNetworkState, getPlaybackRate, getPlayed, getPreload, getReadyState, getSeekable, getSrc, getStartOffsetTime, getVolume, hasControls, hasEnded, isAutoplay, isLoop, isMuted, isPaused, isSeeking, load, pause, play, setAutoplay, setControls, setCurrentTime, setDefaultPlaybackRate, setLoop, setMuted, setPlaybackRate, setPreload, setSrc, setVolume
 
Methods inherited from class com.google.gwt.dom.client.Element
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasClassName, hasTagName, indexOfName, is, is, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassName
 
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
 
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

TAG

public static final java.lang.String TAG
The tag for this element.

See Also:
Constant Field Values

TYPE_MP4

public static final java.lang.String TYPE_MP4
The audio type of MP4 encoded video.

See Also:
Constant Field Values

TYPE_OGG

public static final java.lang.String TYPE_OGG
The audio type of Ogg encoded video.

See Also:
Constant Field Values

TYPE_WEBM

public static final java.lang.String TYPE_WEBM
The audio type of WebM encoded audio.

See Also:
Constant Field Values
Constructor Detail

VideoElement

protected VideoElement()
Method Detail

getHeight

public final int getHeight()
Gets the height of the element.

Returns:
the height, in pixels
See Also:
setHeight(int)

getPoster

public final java.lang.String getPoster()
Returns a poster URL.

Returns:
a URL containing a poster image
See Also:
setPoster(String)

getVideoHeight

public final int getVideoHeight()
Gets the intrinsic height of video within the element.

Returns:
the height, in pixels
See Also:
setHeight(int)

getVideoWidth

public final int getVideoWidth()
Gets the instrinsic width of the video within the element.

Returns:
the width, in pixels
See Also:
setWidth(int)

getWidth

public final int getWidth()
Gets the width of the element.

Returns:
the width, in pixels
See Also:
setWidth(int)

setHeight

public final void setHeight(int height)
Sets the height of the element.

Parameters:
height - the height, in pixels
See Also:
getHeight()

setPoster

public final void setPoster(java.lang.String url)
Sets the poster URL.

Parameters:
url - the poster image URL
See Also:
getPoster()

setWidth

public final void setWidth(int width)
Sets the width of the element.

Parameters:
width - the width, in pixels
See Also:
getWidth()

GWT 2.7.0