Package com.google.gwt.dom.client
Class VideoElement
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
com.google.gwt.dom.client.VideoElement
Video element.
Experimental API: This API is still under development and is subject to change.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe tag for this element.static final StringThe audio type of MP4 encoded video.static final StringThe audio type of Ogg encoded video.static final StringThe 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_NONEFields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUEFields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intGets the height of the element.final StringReturns a poster URL.final intGets the intrinsic height of video within the element.final intGets the instrinsic width of the video within the element.final intgetWidth()Gets the width of the element.final voidsetHeight(int height) Sets the height of the element.final voidSets the poster URL.final voidsetWidth(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, setVolumeMethods 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, toggleClassNameMethods 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, setNodeValueMethods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Field Details
-
TAG
The tag for this element.- See Also:
-
TYPE_MP4
The audio type of MP4 encoded video.- See Also:
-
TYPE_OGG
The audio type of Ogg encoded video.- See Also:
-
TYPE_WEBM
The audio type of WebM encoded audio.- See Also:
-
-
Constructor Details
-
VideoElement
protected VideoElement()
-
-
Method Details
-
getHeight
public final int getHeight()Gets the height of the element.- Returns:
- the height, in pixels
- See Also:
-
getPoster
Returns a poster URL.- Returns:
- a URL containing a poster image
- See Also:
-
getVideoHeight
public final int getVideoHeight()Gets the intrinsic height of video within the element.- Returns:
- the height, in pixels
- See Also:
-
getVideoWidth
public final int getVideoWidth()Gets the instrinsic width of the video within the element.- Returns:
- the width, in pixels
- See Also:
-
getWidth
public final int getWidth()Gets the width of the element.- Returns:
- the width, in pixels
- See Also:
-
setHeight
public final void setHeight(int height) Sets the height of the element.- Parameters:
height- the height, in pixels- See Also:
-
setPoster
Sets the poster URL.- Parameters:
url- the poster image URL- See Also:
-
setWidth
public final void setWidth(int width) Sets the width of the element.- Parameters:
width- the width, in pixels- See Also:
-