Registry / networking / mpris
library2.1.0rscratesunverified

Idiomatic Rust interface for the MPRIS D-Bus media player specification.

# Cargo.toml [dependencies] mpris = "2.1.0"
INSTALL
IMPORT
SIG · MPRIS
M
mpris
networkingrustv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PlayerFinder
use mpris::PlayerFinder;

Finds all MPRIS media players on the D-Bus.

use mpris::PlayerFinder; fn main() -> Result<(), Box<dyn std::error::Error>> { let finder = PlayerFinder::new()?; let players = finder.find_all()?; for player in players { println!("Found player: {}", player.identity()); } Ok(()) }
Debug
Known issues
gotchaRequires a running D-Bus session bus (Linux only).
fix
Ensure D-Bus is running and the application is on a Linux desktop environment.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mpris — cargo add mpris · libregistry