Video
The video component can display a video given an src path as an argument. This could either be a local path from the assets folder or an external link.
If we had a local file in the assets folder named test.mp4 we could set url="/test.mp4" to view the video.
API Reference
rx.video
Video component share with audio component.
Props
| Prop | Type | Description |
|---|---|---|
src | Union[str, list, list] | The url of a video or song to play. |
playing | bool | Set to true or false to pause or play the media. |
loop | bool | Set to true or false to loop the media. |
controls | bool | Set to true or false to display native player controls. |
light | bool | Set to true to show just the video thumbnail, which loads the full player on click. |
volume | float | Set the volume of the player, between 0 and 1. |
muted | bool | Mutes the player. |
config | Dict[str, Any] | Player-specific configuration parameters. |
disable_remote_playback | bool | Set to true to disable the default remote playback option on supported devices. |