media-session-reader 0.0.1

Cross-platform Rust library to read the current media session
Documentation
mod types;

pub use types::{Cover, RepeatMode, Track};

#[cfg(target_os = "windows")]
mod windows;

#[cfg(target_os = "linux")]
mod linux;

pub fn current_track() -> Option<Track> {
    #[cfg(target_os = "windows")]
    {
        windows::current_track()
    }

    #[cfg(target_os = "linux")]
    {
        linux::current_track()
    }
}