fix: send correct amount of ticks for playback reporting

This commit is contained in:
Lei Nelissen
2023-06-20 22:23:50 +02:00
parent d4db9dd2c5
commit d15b7ea29d

View File

@@ -284,7 +284,7 @@ export async function sendPlaybackEvent(path: string, credentials: Credentials,
IsPaused: state === State.Paused,
RepeatMode: RepeatModeMap[repeatMode],
ShuffleMode: 'Sorted',
PositionTicks: Math.round(position * 1_000_000),
PositionTicks: Math.round(position * 10_000_000),
PlaybackRate: 1,
PlayMethod: 'transcode',
MediaSourceId: track !== null ? queue[track].backendId : null,