From 6b8b361ba8561fd6af94f921acf300912706cbc4 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 6 Nov 2024 19:09:12 +0100 Subject: [PATCH] respond in mpris --- src/mpris/player.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mpris/player.rs b/src/mpris/player.rs index c23de94..75aaec6 100644 --- a/src/mpris/player.rs +++ b/src/mpris/player.rs @@ -242,35 +242,35 @@ impl Player { #[zbus::interface(name = "org.mpris.MediaPlayer2.Player")] impl Player { fn next(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn previous(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn pause(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn play_pause(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn stop(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn play(&self) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn seek(&self, _offset: i64) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn set_position(&self, _track_id: ObjectPath<'_>, _position: i64) -> zbus::fdo::Result<()> { - todo!() + Err(zbus::fdo::Error::NotSupported("not implemented".into())) } fn open_uri(&self, _s: String) -> zbus::fdo::Result<()> {