Skip to content

Commit cf42968

Browse files
authored
Update mpris.md
mention that not every media player supports every functionality
1 parent 1e1df0f commit cf42968

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/content/docs/services/mpris.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ dependency: `gvfs` for cover art caching
77
NixOS: `services.gvfs`
88
:::
99

10+
:::note
11+
Not every media player supports `position`, `volume` and other functionality. Support varies from player to player.
12+
:::
13+
1014
## signals
1115

1216
* `changed`: emits on any state change except position change
@@ -47,11 +51,11 @@ NixOS: `services.gvfs`
4751
* `can-go-next`: `boolean`
4852
* `can-go-prev`: `boolean`
4953
* `can-play`: `boolean`
50-
* `shuffle-status`: `boolean | null` null if shuffle is unsupported by the player
51-
* `loop-status`: `"None" | "Track" | "Playlist" | null` null if shuffle is unsupported by the player
52-
* `volume`: `number`
53-
* `length`: `number`
54-
* `position`: `number`
54+
* `shuffle-status`: `boolean | null` null if unsupported by the player
55+
* `loop-status`: `"None" | "Track" | "Playlist" | null` null if unsupported by the player
56+
* `volume`: `number` -1 if unsupported by the player
57+
* `length`: `number` -1 if unsupported by the player
58+
* `position`: `number` -1 if unsupported by the player
5559

5660
### methods
5761

0 commit comments

Comments
 (0)