pub trait MediaSessionFactory: Send + Sync {
// Required method
fn start(
&self,
config: MprisConfig,
initial: PlayerSnapshot,
) -> Option<MediaSession>;
}Expand description
Starts media-control sessions for players such as the VideoPlayer widget.
Required Methods§
Sourcefn start(
&self,
config: MprisConfig,
initial: PlayerSnapshot,
) -> Option<MediaSession>
fn start( &self, config: MprisConfig, initial: PlayerSnapshot, ) -> Option<MediaSession>
Register a player described by config, starting from initial.
None when the process has no media controls; the player then stays
inert.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".