-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: FramePositionUpdater & TimerPositionUpdater #1664
Conversation
void _tick(Duration? timestamp) { | ||
if (_isRunning) { | ||
update(); | ||
_frameCallbackId = SchedulerBinding.instance.scheduleFrameCallback(_tick); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spydon as you're also working on flame, which also uses frame based updates (I think). Do you think this is a valid approach for providing a smooth experience to display position updates? Or should this be made optional and use a the TimerPositionUpdater as first option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach should be good I think!
...audioplayers_android/android/src/main/kotlin/xyz/luan/audioplayers/player/SoundPoolPlayer.kt
Outdated
Show resolved
Hide resolved
0d7102f
to
61a2b50
Compare
…rable-position-updates # Conflicts: # packages/audioplayers_android/android/src/main/kotlin/xyz/luan/audioplayers/player/SoundPoolPlayer.kt
Description
PositionUpdater
:FramePositionUpdater
.AudioPlayer.positionUpdater
toTimerPositionUpdater
, the position stream is updated in the according interval.SoundPoolPlayer
.Checklist
fix:
,feat:
,refactor:
,docs:
,chore:
,test:
,ci:
etc).///
, where necessary.Breaking Change
If the PR is a breaking change this should be indicated with suffix "!"
(for example,
feat!:
,fix!:
). See Conventional Commit for details. -->Migration instructions
Removed in
audioplayers_platform_interface
:Related Issues
Closes #349
Closes #1525