Skip to main content

media_session_reader/
lib.rs

1mod types;
2
3pub use types::{Cover, RepeatMode, Track};
4
5#[cfg(target_os = "windows")]
6mod windows;
7
8#[cfg(target_os = "linux")]
9mod linux;
10
11pub fn current_track() -> Option<Track> {
12    #[cfg(target_os = "windows")]
13    {
14        windows::current_track()
15    }
16
17    #[cfg(target_os = "linux")]
18    {
19        linux::current_track()
20    }
21}