pub async fn set_property<T>(
    player: &mut Player<'_>,
    property: &str,
    value: T
) -> Result<(), Box<dyn Error>> where
    T: Arg + Append
Expand description

Sets the value of a writable MPRIS property. Available properties can be found here.

Errors

May return an Err variant if:

  • An invalid type was provided for the property
  • An invalid property was provided