Audio
The audio component can display an audio 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.mp3 we could set src="/test.mp3" to view the audio file.
API Reference
rx.audio
Audio component share with Video 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. |