limestone/MediaOverlay
Provides a media component with image and text overlay support.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”MediaOverlay Component
Section titled “MediaOverlay   Component ”A Limestone-styled Media component.
Usage:
<MediaOverlay>
<source type='' src=''/>
</MediaOverlay> Extends:
limestone/MediaOverlaylimestone/MediaOverlay.MediaOverlayBase
Wrapped with:
limestone/MediaOverlaylimestone/MediaOverlay.MediaOverlayDecorator
MediaOverlayBase Component
Section titled “MediaOverlayBase   Component ”A media component with image and text overlay support.
Properties
source
Section titled “source”Any children <source> tag elements will be sent directly to the media element as
sources.
caption
Section titled “caption”The primary caption to be displayed.
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
image- class name for imagetextLayout- class name for text layout
Image path for image overlay.
NOTE: When image is displayed, media is not displayed even though it is playing.
Restarts the video every time it is finished.
Determines what triggers the marquee to start its animation.
Media component to use.
The default ('video') renders an HTMLVideoElement. Custom media components must have
a similar API structure, exposing the following APIs:
Methods:
load()- load media
Mutes the audio output of the video.
noAutoPlay
Section titled “noAutoPlay”Prevents the video playback starting on load.
placeholder
Section titled “placeholder”Placeholder for image overlay.
progress
Section titled “progress”A number between 0 and 1 indicating the proportion of the filled portion of the bar.
Only applicable when showProgress is enabled.
showProgress
Section titled “showProgress”Displays the progress bar
subtitle
Section titled “subtitle”The third caption line to be displayed.
Text to display over media.
Aligns the text vertically within the component.
The second caption line to be displayed.
MediaOverlayDecorator Higher-Order Component
Section titled “MediaOverlayDecorator   Higher-Order Component ”A higher-order component that adds Limestone specific behaviors to MediaOverlay.
Includes:
limestone/Marqueelimestone/Marquee.MarqueeController
Includes:
spotlight/Spottablespotlight/Spottable.Spottable
Includes:
ui/Slottableui/Slottable.Slottable
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable