Merge pull request #506 from Sky-High/fix-volume-sync-w-webclient

This commit is contained in:
Bill Thornton 2023-11-29 00:24:16 -05:00 committed by GitHub
commit 4935b89c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
};
}