@JavaScript(value={"vaadin://jquery.js","vaadin://mediaelement/mediaelement-and-player.js","mediaelement_connector.js"})
@StyleSheet(value="vaadin://mediaelement/mediaelementplayer.min.css")
public class MediaElementPlayer
extends com.vaadin.ui.AbstractJavaScriptComponent
implements MediaPlayer, LoadableVisualizer
http://mediaelementjs.com/)LoadableVisualizer.Callbackcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
MediaElementPlayer(MediaElement elementType,
String resourceURL,
String mimeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnLoadCallBack(LoadableVisualizer.Callback callback) |
void |
clearCallbacks() |
MediaState |
getState() |
boolean |
isLoaded()
Returns if the visualizer is ready.
|
void |
pause()
Pause playback of the media file.
|
void |
play(double start)
Play media file from a specific starting point.
|
void |
play(double start,
double end)
Play media file from a specific starting point to and endpoint.
|
addFunction, callFunction, getState, registerRpcaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddStyleNames, getUI, removeStyleNames, setStyleNameaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic MediaElementPlayer(MediaElement elementType, String resourceURL, String mimeType)
public void addOnLoadCallBack(LoadableVisualizer.Callback callback)
addOnLoadCallBack in interface LoadableVisualizerpublic void clearCallbacks()
clearCallbacks in interface LoadableVisualizerpublic final MediaState getState()
getState in class com.vaadin.ui.AbstractJavaScriptComponentpublic boolean isLoaded()
LoadableVisualizerisLoaded in interface LoadableVisualizerpublic void pause()
MediaPlayerpause in interface MediaPlayerpublic void play(double start)
MediaPlayerplay in interface MediaPlayerstart - Where to start the playback in seconds.public void play(double start,
double end)
MediaPlayerplay in interface MediaPlayerstart - Where to start the playback in seconds.end - Where to end the playback in seconds.Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.