Skip to main content

MediaSessionPublisher

Trait MediaSessionPublisher 

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

Receives player state for the process’s media controls.

Required Methods§

Source

fn publish(&mut self, snapshot: PlayerSnapshot)

Publish the latest player state. Must not block.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§