Class Video
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.media.Video
- All Implemented Interfaces:
Component
HTML video wrapper with media attribute and sizing helpers.
Mutable and not thread-safe. Source/attribute configuration updates this instance in place. Mutate within a request-scoped flow. For reuse, stop mutating and render as a stable structure with per-request slot/context values.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoCreates video with the trusted/context-validated source contract ofVideo(String).Alias forHtmlTag.addClass(String).withControls(boolean controls) Sets or removes the native playback controls.withHeight(int height) withHeight(String height) withLoop()withPoster(String posterUrl) Sets an encoded poster URL without Image's source policy.withPreload(String preload) withWidth(int width) Sets inlinewidthafter restricted CSS token validation.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml
-
Constructor Details
-
Video
Creates video with an application-controlled or separately media-context-validated source. Attribute encoding does not validate URL schemes, destinations, or media payloads.
-
-
Method Details
-
create
Creates video with the trusted/context-validated source contract ofVideo(String). -
withControls
-
withControls
Sets or removes the native playback controls. -
withAutoplay
-
withLoop
-
withMuted
-
withPoster
-
withWidth
-
withWidth
-
withHeight
-
withHeight
-
withClass
-
withPreload
-