diff options
| author | Yuval Adam <_@yuv.al> | 2024-05-31 15:12:23 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-05-31 15:12:23 +0200 |
| commit | 948c1f212cab5d56e82e47fd8ff10f20ecbf847f (patch) | |
| tree | ab51c037c623c64422f4de2fd0a99120770c8ca0 /src/audio/mpv.rs | |
| parent | 4a4c5b9174cf0182d4eb755f5d97ca432e5960ca (diff) | |
Initial attempt doesn't work
Diffstat (limited to 'src/audio/mpv.rs')
| -rw-r--r-- | src/audio/mpv.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/mpv.rs b/src/audio/mpv.rs index dddb6b2..fde2711 100644 --- a/src/audio/mpv.rs +++ b/src/audio/mpv.rs @@ -1,10 +1,9 @@ -use super::AudioBackend; use std::process::Command; pub struct Mpv {} -impl AudioBackend for Mpv { - fn play(&self, url: &str) { +impl Mpv { + pub async fn play(&self, url: &str) { Command::new("mpv") .args([url]) .output() |
