Trait servo_media::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.

Required Methods§

source

fn get_id(&self) -> usize

source

fn mute(&self, val: bool) -> Result<(), ()>

source

fn suspend(&self) -> Result<(), ()>

source

fn resume(&self) -> Result<(), ()>

Implementations on Foreign Types§

source§

impl MediaInstance for AudioContext

source§

fn get_id(&self) -> usize

source§

fn mute(&self, val: bool) -> Result<(), ()>

source§

fn suspend(&self) -> Result<(), ()>

source§

fn resume(&self) -> Result<(), ()>

Implementors§