@TagName(value="video") public class VideoElement extends MediaElement
Experimental API: This API is still under development and is subject to change.
Modifier and Type | Field and Description |
---|---|
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.
|
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
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
Modifier | Constructor and Description |
---|---|
protected |
VideoElement() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
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
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final java.lang.String TAG
public static final java.lang.String TYPE_MP4
public static final java.lang.String TYPE_OGG
public static final java.lang.String TYPE_WEBM
public final int getHeight()
setHeight(int)
public final java.lang.String getPoster()
setPoster(String)
public final int getVideoHeight()
setHeight(int)
public final int getVideoWidth()
setWidth(int)
public final int getWidth()
setWidth(int)
public final void setHeight(int height)
height
- the height, in pixelsgetHeight()
public final void setPoster(java.lang.String url)
url
- the poster image URLgetPoster()
public final void setWidth(int width)
width
- the width, in pixelsgetWidth()