Skip to main content

MediaSessionPublisher

Trait MediaSessionPublisher 

pub trait MediaSessionPublisher: Send {
    // Required method
    fn publish(&mut self, snapshot: PlayerSnapshot);
}
Expand description

Receives player state for the host’s media controls.

Required Methods§

fn publish(&mut self, snapshot: PlayerSnapshot)

Publish the latest player state. Must not block.

Implementors§