summaryrefslogtreecommitdiff
path: root/src/audio/mpv.rs
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-06-04 20:50:46 +0200
committerYuval Adam <_@yuv.al>2024-06-04 20:50:46 +0200
commit355743d349d8f63a5d98246c0f0265812fbb2482 (patch)
treec48c313ebad2949afa96e64d8ed48e1d2b16fdf7 /src/audio/mpv.rs
parent482a942cd9e62fadee4ee7bc1fd7e8def8a85f71 (diff)
Initial spinner mpsc
Diffstat (limited to 'src/audio/mpv.rs')
-rw-r--r--src/audio/mpv.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/mpv.rs b/src/audio/mpv.rs
index fde2711..06d3630 100644
--- a/src/audio/mpv.rs
+++ b/src/audio/mpv.rs
@@ -1,9 +1,10 @@
use std::process::Command;
+use tokio::sync::mpsc;
pub struct Mpv {}
impl Mpv {
- pub async fn play(&self, url: &str) {
+ pub async fn play(&self, url: &str, _tx: mpsc::Sender<String>) {
Command::new("mpv")
.args([url])
.output()