mediapulse 0.1.5

A self-contained native media player built around mpv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
    if let Err(error) = mediapulse_lib::run(media_sources()) {
        eprintln!("MediaPulse failed to start: {error}");
        std::process::exit(1);
    }
}

fn media_sources() -> Vec<String> {
    std::env::args_os()
        .skip(1)
        .filter(|argument| !argument.to_string_lossy().starts_with('-'))
        .map(|argument| argument.to_string_lossy().into_owned())
        .collect()
}