sandstone/ Media Overlay
Provides a media component with image and text overlay support.
import MediaOverlay from '@enact/sandstone/MediaOverlay';Members
MediaOverlayComponent
A Sandstone-styled Media component.
Usage:
<MediaOverlay>
<source type='' src=''/>
</MediaOverlay>import MediaOverlay from '@enact/sandstone/MediaOverlay';MediaOverlayBaseComponent
A media component with image and text overlay support.
import {MediaOverlayBase} from '@enact/sandstone/MediaOverlay';Properties
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 anHTMLVideoElement. Custom media components must have a similar API structure, exposing the following APIs:Methods:
load()- load media
Default: 'video'Mutes the audio output of the video.
Prevents the video playback starting on load.
Placeholder for image overlay.
A number between
0and1indicating the proportion of the filled portion of the bar.Only applicable when
showProgressis enabled.Default: 0Displays the progress bar
Any children
<source>tag elements will be sent directly to the media element as sources.The third caption line to be displayed.
Text to display over media.
Aligns the
textvertically within the component.Default: 'end'The second caption line to be displayed.
MediaOverlayDecoratorHigher-Order Component
A higher-order component that adds Sandstone specific behaviors to MediaOverlay.
import {MediaOverlayDecorator} from '@enact/sandstone/MediaOverlay';