Fix sync of volume level with webclient

This commit is contained in:
Sky High 2023-11-28 23:11:13 +01:00
parent df199797af
commit e4136927b2

View File

@ -55,7 +55,7 @@ export function getReportingParams(state: PlaybackState): PlaybackProgressInfo {
PositionTicks: Math.round(getCurrentPositionTicks(state)),
RepeatMode: window.repeatMode,
SubtitleStreamIndex: state.subtitleStreamIndex,
VolumeLevel: Math.round(window.volume?.level ?? 0 * 100)
VolumeLevel: Math.round((window.volume?.level ?? 0) * 100)
};
}