⌂
›
Reference
›
Audio
Audio
Audio control. Build it with the audio helper.
Example
audio(
src: "https://example.com/image.png",
on_duration_change: ->(event) {}
)
Properties
autoplaybalanceplayback_raterelease_modesrc— Source URL or asset path of the image.src_base64volume
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_duration_change— Fired on duration change.on_error— Fired when an error occurs.on_loaded— Fired when the control has loaded.on_position_change— Fired on position change.on_seek_complete— Fired on seek complete.on_state_change— Fired when the control's state changes.
Reference
- Family:
materials - Widget type:
audio - Helper:
audio