public class Video extends MediaComponent
MediaComponent.Cors, MediaComponent.PreloadENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
Video(String id)
Creates a video component
|
Video(String id,
IModel<?> model)
Creates a video component
|
Video(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a video component
|
Video(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a video component
|
Video(String id,
IModel<?> model,
String url)
Creates a video component
|
Video(String id,
IModel<?> model,
String url,
PageParameters pageParameters)
Creates a video component
|
Video(String id,
ResourceReference resourceReference)
Creates a video component
|
Video(String id,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a media component
|
Video(String id,
String url)
Creates a video component
|
Video(String id,
String url,
PageParameters pageParameters)
Creates a video component
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHeight()
Gets the height of the video area
|
ResourceReference |
getPoster()
The image to be displayed if the video isn't available
|
PageParameters |
getPosterPageParameters()
Gets the posters page parameters
|
Integer |
getWidth()
Gets the width of the video area
|
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag.
|
void |
setHeight(Integer height)
Sets the height of the video area
|
void |
setPoster(ResourceReference poster)
Sets the image to be displayed if the video isn't available
|
void |
setPoster(ResourceReference poster,
PageParameters posterPageParameters)
Sets the image to be displayed if the video isn't available
|
void |
setPosterPageParameters(PageParameters posterPageParameters)
Sets the posters page parameters
|
void |
setWidth(Integer width)
Sets the width of the video area
|
getCrossOrigin, getEndTime, getMediaGroup, getPageParameters, getPreload, getStartTime, getType, hasControls, isAutoplay, isLooping, isMuted, setAutoplay, setControls, setCrossOrigin, setEndTime, setLooping, setMediaGroup, setMuted, setPageParameters, setPreload, setStartTime, setTypegetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic Video(String id)
id - the component idpublic Video(String id, IModel<?> model)
id - the component idmodel - the internally used modelpublic Video(String id, ResourceReference resourceReference)
id - the component idresourceReference - the resource reference of the video filepublic Video(String id, IModel<?> model, ResourceReference resourceReference)
id - the component idmodel - the internally used modelresourceReference - the resource reference of the video filepublic Video(String id, ResourceReference resourceReference, PageParameters pageParameters)
id - the component idresourceReference - the resource reference of the video filepageParameters - the page parameters to be used to be prepended to the video URLpublic Video(String id, IModel<?> model, ResourceReference resourceReference, PageParameters pageParameters)
id - the component idmodel - the internally used modelresourceReference - the resource reference of the video filepageParameters - the page parameters to be used to be prepended to the video URLpublic Video(String id, String url)
id - the component idurl - an external URL to be used for the video componentpublic Video(String id, IModel<?> model, String url)
id - the component idmodel - the internally used modelurl - an external URL to be used for the video componentpublic Video(String id, String url, PageParameters pageParameters)
id - the component idurl - an external URL to be used for the video componentpageParameters - the page parameters to be used to be prepended to the video URLpublic Video(String id, IModel<?> model, String url, PageParameters pageParameters)
id - the component idmodel - the internally used modelurl - an external URL to be used for the video componentpageParameters - the page parameters to be used to be prepended to the video URLprotected void onComponentTag(ComponentTag tag)
ComponentonComponentTag in class MediaComponenttag - Tag to modifypublic ResourceReference getPoster()
public PageParameters getPosterPageParameters()
public void setPosterPageParameters(PageParameters posterPageParameters)
posterPageParameters - the page parameters for the posterpublic void setPoster(ResourceReference poster)
poster - the resource reference of the image used if the video isn't availablepublic void setPoster(ResourceReference poster, PageParameters posterPageParameters)
poster - the resource reference of the image used if the video isn't availableposterPageParameters - the page parameters for the posterpublic Integer getWidth()
public void setWidth(Integer width)
width - the width of the video areapublic Integer getHeight()
public void setHeight(Integer height)
height - the height of the video areaCopyright © 2006–2021 Apache Software Foundation. All rights reserved.