Video#
- marimo.video(src: str | bytes | BytesIO | BufferedReader, controls: bool = True, muted: bool = False, autoplay: bool = False, loop: bool = False, width: int | None = None, height: int | None = None, rounded: bool = False) Html #
Render an video as HTML.
Example.
mo.video( src="https://v3.cdnpk.net/videvo_files/video/free/2013-08/large_watermarked/hd0992_preview.mp4", controls=False, )
Args.
src
: the URL of the video or a file-like objectcontrols
: whether to show the controlsmuted
: whether to mute the videoautoplay
: whether to autoplay the video. the video will only autoplay ifmuted
isTrue
loop
: whether to loop the videowidth
: the width of the videoheight
: the height of the videorounded
: whether to round the corners of the video
Returns.
Html
object