Skip to main content

track_object_path

Function track_object_path 

pub fn track_object_path(track_id: &str) -> String
Expand description

Map a track id to a valid D-Bus object path for mpris:trackid. D-Bus paths allow only [A-Za-z0-9_] between / separators, so non-conforming bytes are replaced with _. An empty id yields the MPRIS “no track” sentinel path.