|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractMedia
com.vaadin.ui.Video
public class Video
The Video component translates into an HTML5 <video> element and as
such is only supported in browsers that support HTML5 media markup. Browsers
that do not support HTML5 display the text or HTML set by calling
AbstractMedia.setAltText(String).
A flash-player fallback can be implemented by setting HTML content allowed (
AbstractMedia.setHtmlContentAllowed(boolean) and calling
AbstractMedia.setAltText(String) with the flash player markup. An example of flash
fallback can be found at the Mozilla Developer Network.
Multiple sources can be specified. Which of the sources is used is selected
by the browser depending on which file formats it supports. See wikipedia for a
table of formats supported by different browsers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
|---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
|---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
|---|
Sizeable.Unit |
| Field Summary |
|---|
| Fields inherited from interface com.vaadin.server.Sizeable |
|---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
| Constructor Summary | |
|---|---|
Video()
|
|
Video(java.lang.String caption)
|
|
Video(java.lang.String caption,
Resource source)
|
|
| Method Summary | |
|---|---|
Resource |
getPoster()
|
protected com.vaadin.shared.ui.video.VideoState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
void |
setPoster(Resource poster)
Sets the poster image, which is shown in place of the video before the user presses play. |
| Methods inherited from class com.vaadin.ui.AbstractMedia |
|---|
addSource, getAltText, getSources, handleConnectorRequest, isAutoplay, isHtmlContentAllowed, isMuted, isShowControls, pause, play, setAltText, setAutoplay, setHtmlContentAllowed, setMuted, setShowControls, setSource, setSources |
| Methods inherited from class com.vaadin.server.AbstractClientConnector |
|---|
addExtension, addMethodInvocationToQueue, createState, encodeState, getAllChildrenIterable, getConnectorId, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
getUI |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
encodeState, getExtensions, getStateType, markAsDirty, markAsDirtyRecursive, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.RpcTarget |
|---|
getRpcManager |
| Constructor Detail |
|---|
public Video()
public Video(java.lang.String caption)
caption - The caption for this video.
public Video(java.lang.String caption,
Resource source)
caption - The caption for this video.source - The Resource containing the video to play.| Method Detail |
|---|
protected com.vaadin.shared.ui.video.VideoState getState()
AbstractComponent
getState in class AbstractMediapublic void setPoster(Resource poster)
poster - public Resource getPoster()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||