|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.FocusWidget com.google.gwt.media.client.MediaBase com.google.gwt.media.client.Video
public class Video
A widget representing a <video> element.
Experimental API: This API is still under development and is subject to change.
This widget may not be supported on all browsers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
|
Video(java.lang.String src)
Deprecated. use createIfSupported() . |
protected |
Video(VideoElement element)
Protected constructor. |
Method Summary | |
---|---|
static Video |
createIfSupported()
Return a new Video if supported, and null otherwise. |
java.lang.String |
getPoster()
Returns a poster URL. |
VideoElement |
getVideoElement()
Returns the attached VideoElement. |
int |
getVideoHeight()
Gets the intrinsic height of video within the element. |
int |
getVideoWidth()
Gets the instrinsic width of the video within the element. |
static boolean |
isSupported()
Runtime check for whether the video element is supported in this browser. |
void |
setPoster(java.lang.String url)
Sets the poster URL. |
Methods inherited from class com.google.gwt.media.client.MediaBase |
---|
addCanPlayThroughHandler, addEndedHandler, addLoadedMetadataHandler, addProgressHandler, addSource, addSource, canPlayType, getBuffered, getCurrentSrc, getCurrentTime, getDefaultPlaybackRate, getDuration, getError, getInitialTime, getMediaElement, getNetworkState, getPlaybackRate, getPlayed, getPreload, getReadyState, getSeekable, getSrc, getStartOffsetTime, getVolume, hasControls, hasEnded, isAutoplay, isLoop, isMuted, isPaused, isSeeking, load, pause, play, removeSource, setAutoplay, setControls, setCurrentTime, setDefaultPlaybackRate, setLoop, setMuted, setPlaybackRate, setPreload, setSrc, setVolume |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
protected Video(VideoElement element)
createIfSupported()
to create a Video.
@Deprecated public Video(java.lang.String src)
createIfSupported()
.
src
- a String URL.Method Detail |
---|
public static Video createIfSupported()
Video
if supported, and null otherwise.
Video
if supported, and null otherwisepublic static boolean isSupported()
public java.lang.String getPoster()
setPoster(String)
public VideoElement getVideoElement()
public int getVideoHeight()
Element.getOffsetHeight()
public int getVideoWidth()
Element.getOffsetWidth()
public void setPoster(java.lang.String url)
url
- the poster image URLgetPoster()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |