Struct web_audio_api::media::MediaElement
source · pub struct MediaElement { /* private fields */ }
Expand description
Shim of the <audio>
element which allows you to efficiently play and seek audio from disk
The documentation for MediaElementAudioSourceNode
contains usage instructions.
Implementations§
source§impl MediaElement
impl MediaElement
sourcepub fn new<P: Into<PathBuf>>(file: P) -> Result<Self, Box<dyn Error>>
pub fn new<P: Into<PathBuf>>(file: P) -> Result<Self, Box<dyn Error>>
Create a new instance for a given file path