Trait servo_media_traits::MediaInstance
source · pub trait MediaInstance: Send {
// Required methods
fn get_id(&self) -> usize;
fn mute(&self, val: bool) -> Result<(), ()>;
fn suspend(&self) -> Result<(), ()>;
fn resume(&self) -> Result<(), ()>;
}
Expand description
Common functionality for all high level media instances These currently are WebAudio AudioContexts and Players.