feat(mobile): high precision seeking (#22346)

* millisecond precision video playback

* wrap in unawaited

* update commit
This commit is contained in:
Mert 2025-10-24 14:59:30 -04:00 committed by GitHub
parent 78fb815cdb
commit c73e3dacea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 81 additions and 53 deletions

View file

@ -61,7 +61,7 @@ class VideoPosition extends HookConsumerWidget {
return;
}
ref.read(videoPlayerControlsProvider.notifier).position = seekToDuration.inSeconds.toDouble();
ref.read(videoPlayerControlsProvider.notifier).position = seekToDuration;
// This immediately updates the slider position without waiting for the video to update
ref.read(videoPlaybackValueProvider.notifier).position = seekToDuration;