feat: add skip forward and backward playback controls

This commit is contained in:
Rodrigo Rivero 2026-05-07 18:53:08 -04:00 committed by GitHub
parent 468b5f1459
commit f3d6469bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 119 additions and 13 deletions

View file

@ -150,12 +150,12 @@ impl RootInterface for Player {
impl PlayerInterface for Player {
async fn next(&self) -> fdo::Result<()> {
log::info!("Next");
Ok(())
self.message(Message::PlayNext).await
}
async fn previous(&self) -> fdo::Result<()> {
log::info!("Previous");
Ok(())
self.message(Message::PlayPrev).await
}
async fn pause(&self) -> fdo::Result<()> {
@ -271,12 +271,12 @@ impl PlayerInterface for Player {
async fn can_go_next(&self) -> fdo::Result<bool> {
log::info!("CanGoNext");
Ok(false)
Ok(true)
}
async fn can_go_previous(&self) -> fdo::Result<bool> {
log::info!("CanGoPrevious");
Ok(false)
Ok(true)
}
async fn can_play(&self) -> fdo::Result<bool> {