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§
Sourcefn publish(&mut self, snapshot: PlayerSnapshot)
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".