use float value from OS seek

This commit is contained in:
zackslash
2023-10-20 20:05:13 +01:00
parent 19964b62fd
commit 66cbfe0a0c
3 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -39,9 +39,7 @@ void register_os_remote_commands() {
[commandCenter.changePlaybackPositionCommand addTargetWithHandler:^MPRemoteCommandHandlerStatus(MPRemoteCommandEvent * _Nonnull event) {
MPChangePlaybackPositionCommandEvent *positionChangeEvent = (MPChangePlaybackPositionCommandEvent *)event;
double posSecDouble = positionChangeEvent.positionTime;
int posSeconds = (int)posSecDouble;
os_remote_command_callback(SEEK, posSeconds);
os_remote_command_callback(SEEK, positionChangeEvent.positionTime);
return MPRemoteCommandHandlerStatusSuccess;
}];
}