use mediactl::{list_players, MediaPlayer};

fn main() {
    match list_players() {
        Ok(players) => {
            for player in &players {
                print!("Pausing {}... ", player.name());
                match player.pause() {
                    Ok(()) => println!("ok"),
                    Err(e) => println!("error: {e}"),
                }
            }
        }
        Err(e) => eprintln!("Error: {e}"),
    }
}
