playsrg-apple
playsrg-apple copied to clipboard
Resume playback of a briefly seen segment might resume before its start
If a segment as been very briefly played, resuming it will efficiently try to seek at the nearest chunk before the position. Currently the start position can be located before the segment. It should not.
Issue type
Incorrect behavior
Environment information
- Application version: 2.8.5
- iOS version: Any
- Device: Any
Reproducibility
Always reproducible
Steps to reproduce
- Open a segment (e.g. 19h30 subject).
- Immediately close it.
- Reopen it. If the segment start was not in the direct vicinity of a chunk start, playback will resume before the segment. Otherwise pick another segment.
This is an SRG Media Player issue. I opened a dedicated ticket on its issue tracker.
For the moment, as this is an AVPlayer
bug, we decided to put this issue on hold. We could use accurate seeking when resuming playback, but we decided that for the moment this was acceptable as it is now.
I'll update this issue once I have more feedback from Apple.
This issue has been fixed by Apple. We don't use tolerances at the moment because of an issue with RTS content (https://github.com/SRGSSR/srgletterbox-apple/issues/245). We must ensure this issue is fixed as well before we re-enable tolerances again (tolerance before only for resuming playback efficiently). We might also prefer to use precise seeking for resuming playback, in which case this issue can be closed.