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 object

  • controls: whether to show the controls

  • muted: whether to mute the video

  • autoplay: whether to autoplay the video. the video will only autoplay if muted is True

  • loop: whether to loop the video

  • width: the width of the video

  • height: the height of the video

  • rounded: whether to round the corners of the video

Returns.

Html object