Skip to content
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

Smooth seeking #391

Merged
merged 21 commits into from
Jan 21, 2024
Merged

Smooth seeking #391

merged 21 commits into from
Jan 21, 2024

Conversation

StaehliJ
Copy link
Contributor

@StaehliJ StaehliJ commented Jan 10, 2024

Pull request

Description

The goal of this PR is to add smooth seeking to PillarboxPlayer .

Smooth seeking work better when the playback is paused and the seek behavior try to synchronize to I-Frames. (SeekParameters.CLOSEST_SYNCH). It obviously work best when current stream contains I-Frames .

Changes made

  • Introduce a new interface Pillarbox for PillarboxPlayer to handle smooth seeking. It allow to make like ForwardingPlayer but with PillarboxPlayer
  • Add PillarboxPlayer.smoothSeekingEnabled to enable or disable smooth seeking.
  • SmoothProgressTrackerState doesn't change playback speed. It only pause the playback, disable needed tracks and enable smoothSeeking.
  • Enhanced PillarboxLoadControl to improve playback start.
  • Smooth seeking take effects only when Player.seekTo is called, it is disabled for other seek event like seek forward or back.

Checklist

  • Your branch has been rebased onto the main branch.
  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).
  • All pull request status checks pass.

@StaehliJ StaehliJ linked an issue Jan 10, 2024 that may be closed by this pull request
1 task
@StaehliJ StaehliJ marked this pull request as ready for review January 10, 2024 15:36
@MGaetan89 MGaetan89 added this pull request to the merge queue Jan 21, 2024
Merged via the queue into main with commit 47668cf Jan 21, 2024
8 checks passed
@MGaetan89 MGaetan89 deleted the smooth-seeking branch January 21, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smooth seeking
2 participants