Video¶
marimo.video
¶
video(
src: Union[str, bytes, BytesIO, BufferedReader],
controls: bool = True,
muted: bool = False,
autoplay: bool = False,
loop: bool = False,
width: Optional[Union[int, str]] = None,
height: Optional[Union[int, str]] = 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 ifmutedisTrueloop: whether to loop the videowidth: the width of the video in pixels or a string with unitsheight: the height of the video in pixels or a string with unitsrounded: whether to round the corners of the video
Returns.
Html object