public abstract class VMediaBase
extends com.google.gwt.user.client.ui.Widget
| Constructor and Description |
|---|
VMediaBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(String sourceUrl,
String sourceType) |
void |
load() |
void |
pause() |
void |
play() |
void |
removeAllSources() |
void |
setAltText(String alt) |
void |
setAutoplay(boolean shouldAutoplay) |
void |
setControls(boolean shouldShowControls) |
void |
setLoop(boolean loop)
Enables or disables looping.
|
void |
setMediaElement(com.google.gwt.dom.client.MediaElement element)
Sets the MediaElement that is to receive all commands and properties.
|
void |
setMuted(boolean mediaMuted) |
void |
setPreload(String preload)
Sets the preload attribute that is intended to provide a hint to the
browser how the media should be preloaded.
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic void setMediaElement(com.google.gwt.dom.client.MediaElement element)
element - public void play()
public void pause()
public void setAltText(String alt)
public void setControls(boolean shouldShowControls)
public void setAutoplay(boolean shouldAutoplay)
public void setMuted(boolean mediaMuted)
public void setPreload(String preload)
preload - preload modepublic void setLoop(boolean loop)
loop - if true, enable loopingpublic void removeAllSources()
public void load()
Copyright © 2021 Vaadin Ltd. All rights reserved.