MCPcopy Create free account
hub / github.com/Moosync/Moosync / set_playback_state

Function set_playback_state

src/utils/mpris.rs:45–52  ·  view source on GitHub ↗
(state: PlayerState)

Source from the content-addressed store, hash-verified

43
44#[tracing::instrument(level = "debug", skip(state))]
45pub fn set_playback_state(state: PlayerState) {
46 spawn_local(async move {
47 let res = crate::utils::invoke::set_playback_state(state).await;
48 if let Err(err) = res {
49 tracing::error!("Failed to set mpris playback state {:?}", err);
50 }
51 })
52}
53
54lazy_static! {
55 static ref last_time_update: Mutex<wasm_timer::Instant> =

Callers 1

set_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected