Skip to main content

start_desktop_session

Function start_desktop_session 

pub fn start_desktop_session(
    config: MprisConfig,
    initial: PlayerSnapshot,
) -> Option<MediaSession>
Expand description

Serve MPRIS for one player. None on non-Unix platforms, without the mpris feature, or when the app runtime cannot start. The bus connection is made in the background; without a session bus the session stays inert.