media-session-reader
A cross-platform Rust library to retrieve information about the currently playing media session.
It provides a simple API to access the current track, artist, album cover, playback position, duration and playing state.
Supported Platforms
| Platform | Backend |
|---|---|
| Windows 10/11 | WGSMTC |
| Linux | MPRIS |
Features
- Get current playing track
- Get artist information
- Get album artwork
- Get playback duration
- Get current position
- Get playback state
Installation
Add this to your Cargo.toml:
[]
= "0.0.1"
Basic usage
use current_track;