Skip to content

Cross platform media control #703

@rashil2000

Description

@rashil2000

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:

    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions