Skip to main content
Render a video as HTML.

Usage

Signature

Parameters

Union[str, bytes, io.BytesIO, io.BufferedReader]
required
The URL of the video or a file-like object.
bool
default:"True"
Whether to show the controls.
bool
default:"False"
Whether to mute the video.
bool
default:"False"
Whether to autoplay the video. The video will only autoplay if muted is True.
bool
default:"False"
Whether to loop the video.
Optional[Union[int, str]]
default:"None"
The width of the video in pixels or a string with units.
Optional[Union[int, str]]
default:"None"
The height of the video in pixels or a string with units.
bool
default:"False"
Whether to round the corners of the video.

Returns

An Html object.