#703·ncspot

Cross platform media control

Author: rashil2000Created Jan 12, 2022Updated Jun 12, 2026
Labelsenhancement

Is your feature request related to a problem? Please describe. I see that media control on Linux has been implemented via MPRIS. It would be great to have this functionality on all platforms.

Describe the solution you'd like There's a crate - https://github.com/Sinono3/souvlaki - which abstracts away media control under a unified function. It not only supports Linux (via MPRIS), but also has full support for Windows and macOS.

Describe alternatives you've considered None

Additional context This is what a typical function looks like in souvlaki:

rust
    controls
        .set_metadata(MediaMetadata {
            title: Some("When The Sun Hits"),
            album: Some("Souvlaki"),
            artist: Some("Slowdive"),
            duration: Some(Duration::from_secs_f64(4.0 * 60.0 + 50.0)),
            cover_url: Some("https://c.pxhere.com/photos/34/c1/souvlaki_authentic_greek_greek_food_mezes-497780.jpg!d"),
        })
        .unwrap();

See https://github.com/Sinono3/souvlaki/tree/master/examples for more examples.