mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
use correct player seek event for mpris updater (#1740)
This commit is contained in:
@@ -179,13 +179,13 @@ export const useMPRIS = () => {
|
|||||||
|
|
||||||
mpris?.updateRepeat(properties.repeat);
|
mpris?.updateRepeat(properties.repeat);
|
||||||
},
|
},
|
||||||
onPlayerSeek: (properties) => {
|
onPlayerSeekToTimestamp: (properties) => {
|
||||||
if (!mpris) {
|
if (!mpris) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const seconds = properties.seconds;
|
const timestamp = properties.timestamp;
|
||||||
mpris?.updateSeek(seconds);
|
mpris?.updateSeek(timestamp);
|
||||||
},
|
},
|
||||||
onPlayerShuffle: (properties) => {
|
onPlayerShuffle: (properties) => {
|
||||||
if (!mpris) {
|
if (!mpris) {
|
||||||
|
|||||||
Reference in New Issue
Block a user