Skip to content

Fix playback rate to match iOS Float type#16

Merged
marcprux merged 2 commits intoskiptools:mainfrom
vincentborko:main
Jan 12, 2026
Merged

Fix playback rate to match iOS Float type#16
marcprux merged 2 commits intoskiptools:mainfrom
vincentborko:main

Conversation

@vincentborko
Copy link
Contributor

  • Fix rate setter to preserve playback state when adjusting speed, since Android's setPlaybackParams automatically starts playback by default
  • Change rate property from Double to Float with explicit cast to match iOS API

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

- Change rate property from Double to Float with explicit cast to match iOS API
- Fix rate setter to preserve playback state when adjusting speed, since Android's setPlaybackParams automatically starts playback by default
@cla-bot cla-bot bot added the cla-signed label Jan 12, 2026
ios has optional delegate, need this to match
@marcprux marcprux changed the title Fix playbackrate and match IOS typing Fix playbackrate and match iOS typing Jan 12, 2026
@marcprux
Copy link
Member

This looks good!

add delegate to compile ios (doesnt yet work)

Should I wait on merging this for the delegate implementation (in which case this PR should be converted to a draft), or are you thinking of adding that later?

@vincentborko
Copy link
Contributor Author

vincentborko commented Jan 12, 2026

I didnt manage to get the delegate working, so not planning to update it

@marcprux marcprux changed the title Fix playbackrate and match iOS typing Fix playback rate to match iOS Float type Jan 12, 2026
@marcprux marcprux merged commit 1903ff0 into skiptools:main Jan 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants