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
PARAMETER | DESCRIPTION |
---|---|
src
|
the URL of the video or a file-like object
TYPE:
|
controls
|
whether to show the controls
TYPE:
|
muted
|
whether to mute the video
TYPE:
|
autoplay
|
whether to autoplay the video.
the video will only autoplay if
TYPE:
|
loop
|
whether to loop the video
TYPE:
|
width
|
the width of the video in pixels or a string with units
TYPE:
|
height
|
the height of the video in pixels or a string with units
TYPE:
|
rounded
|
whether to round the corners of the video
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Html
|
|