From 948c1f212cab5d56e82e47fd8ff10f20ecbf847f Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 31 May 2024 15:12:23 +0200 Subject: Initial attempt doesn't work --- src/audio/mpv.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/audio/mpv.rs') 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() -- cgit v1.3.1