Skip to content

Commit

Permalink
Update mpris.md
Browse files Browse the repository at this point in the history
mention that not every media player supports every functionality
  • Loading branch information
Aylur authored Mar 15, 2024
1 parent 1e1df0f commit cf42968
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/content/docs/services/mpris.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ dependency: `gvfs` for cover art caching
NixOS: `services.gvfs`
:::

:::note
Not every media player supports `position`, `volume` and other functionality. Support varies from player to player.
:::

## signals

* `changed`: emits on any state change except position change
Expand Down Expand Up @@ -47,11 +51,11 @@ NixOS: `services.gvfs`
* `can-go-next`: `boolean`
* `can-go-prev`: `boolean`
* `can-play`: `boolean`
* `shuffle-status`: `boolean | null` null if shuffle is unsupported by the player
* `loop-status`: `"None" | "Track" | "Playlist" | null` null if shuffle is unsupported by the player
* `volume`: `number`
* `length`: `number`
* `position`: `number`
* `shuffle-status`: `boolean | null` null if unsupported by the player
* `loop-status`: `"None" | "Track" | "Playlist" | null` null if unsupported by the player
* `volume`: `number` -1 if unsupported by the player
* `length`: `number` -1 if unsupported by the player
* `position`: `number` -1 if unsupported by the player

### methods

Expand Down

0 comments on commit cf42968

Please sign in to comment.