Skip to main content

media

Function media 

Source
pub fn media<M>(url: impl IntoText<M>) -> Media
Expand description

media(url) — a native audio/video player for url (a string, Signal<String>, or closure; a file path or an http(s) URL). The initial value loads on creation and autoplays by default; call .load(trigger) and fire the trigger to (re)load whatever url currently holds.

Day API ↩ Guides· daybrite.dev