Render a video as HTML.
Usage
mo.video(
src="https://v3.cdnpk.net/videvo_files/video/free/2013-08/large_watermarked/hd0992_preview.mp4",
controls=False,
)
Signature
mo.video(
src: Union[str, bytes, io.BytesIO, io.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
Parameters
src
Union[str, bytes, io.BytesIO, io.BufferedReader]
required
The URL of the video or a file-like object.
Whether to show the controls.
Whether to mute the video.
Whether to autoplay the video. The video will only autoplay if muted is True.
Whether to loop the video.
width
Optional[Union[int, str]]
default:"None"
The width of the video in pixels or a string with units.
height
Optional[Union[int, str]]
default:"None"
The height of the video in pixels or a string with units.
Whether to round the corners of the video.
Returns