mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 05:20:13 +02:00
[enhancement]: support viewing current/setting current time in remote
This commit is contained in:
@@ -669,11 +669,11 @@ export const useCenterControls = (args: { playersRef: any }) => {
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (utils?.isLinux()) {
|
||||
if (remote) {
|
||||
const unsubCurrentTime = usePlayerStore.subscribe(
|
||||
(state) => state.current.time,
|
||||
(time) => {
|
||||
mpris?.updatePosition(time);
|
||||
remote.updatePosition(time);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user