Video
Overview
Video is the equivalent of an <video>
HTML element. Video displays the browser's native video controls.
Examples
import mesop as me
@me.page(
security_policy=me.SecurityPolicy(
allowed_iframe_parents=["https://google.github.io"]
),
path="/video",
)
def app():
me.video(
src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm",
style=me.Style(height=300, width=300),
)
API
video
Creates a video.
PARAMETER | DESCRIPTION |
---|---|
src |
URL of the video source
TYPE:
|
style |
The style to apply to the image, such as width and height.
TYPE:
|