A DBus music player server wirtten in Rust
and many more
Name | Type | Signature | Result/Value | Flags |
---|---|---|---|---|
End | method | - | b | - |
Metadata | method | - | (sss(ays)) | - |
Pause | method | - | b | - |
Play | method | s | b | - |
Playing | method | - | (s(tu)sss) | - |
Resume | method | - | b | - |
Seek | method | d | b | - |
Status | method | - | s | - |
Timer | method | - | s | - |
ToggleMute | method | - | b | - |
Volume | method | d | b | - |
- End
Descriptoin: Terminate the playing music
- Result Kind: True if no panic happened
- Metadata
Description: Returns the playing music metadata
- Result Kind: Deserialized Metadata type
- Pause
Description: Pauses the playing music
- Result Kind: True if no panic happened
- Play
Description: Plays the music from file path
- Result Kind: True if no panic happened
- Resume
Description: Resumes the playing music
- Result Kind: True if no panic happened
- Seek
Description: seeks the player by the given duration relative to the current playing time
- if state is playing :
- seek by the give nduration
- if state is Stopping it:
- plays the preivously played song
- seeks by the given duration
- if state is pausing it:
- resumes the currently playing song
- seeks by the given duration
- Result Kind: True if no panic happened
- Status
Description: Returns the player status
- Result Kind: Follows the following schema:
Status: <Playing|Pausing|Paused>\nAudio Path: \nVolume: <value between 0 and 1>
- Timer
Description: played duration over the the total duration of the music
- Result Kind: full length/played duration as a string
- ToggleMute
Description: Toggles audio
- Result Kind: True if no panic happened
- Volume
Description: Change the volume of the player
- Result Kind: True if no panic happened
- Play
Descriptoin: Plays the music from the file path
- Result Kind: True if no panic happened