SRGSSR / pillarbox-apple

A next-generation reactive media playback ecosystem for Apple platforms.
https://testflight.apple.com/join/TS6ngLqf
MIT License
56 stars 8 forks source link

Control center seek support #208

Closed defagos closed 1 year ago

defagos commented 1 year ago

As a user I want to be able to seek within a stream from the control center with a good experience.

Acceptance criteria

Tasks

defagos commented 1 year ago

Maybe we should do things a bit differently.

defagos commented 1 year ago

We will revert changes made in #191:

We also could reproduce this issue with SRF streams and Apple streams arranged in a playlist.

defagos commented 1 year ago

Here is how we mitigated time jumps when seeking:

We also extended this mechanism to progress tracking so that behavior is consistent with seek bars. We changed the implementation so that interaction is only a gate controlling whether time updates are propagated to the UI or not (before they were used as a trigger, unnecessarily recreating publishers from scratch).

Finally we implemented smooth seeking according to Apple technical note. This way we can peek at the content when seeking. Apple standard UI further improves peeking by relying on interstitials, both on iOS and tvOS, but this is out of scope. This is an improvement we could consider in the future, though (a dedicated task draft has been added to the backlog).