playsrg-apple icon indicating copy to clipboard operation
playsrg-apple copied to clipboard

Resume playback of a briefly seen segment might resume before its start

Open defagos opened this issue 6 years ago • 3 comments

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

  1. Open a segment (e.g. 19h30 subject).
  2. Immediately close it.
  3. 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.

defagos avatar Sep 28 '18 14:09 defagos

This is an SRG Media Player issue. I opened a dedicated ticket on its issue tracker.

defagos avatar Oct 01 '18 05:10 defagos

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.

defagos avatar Oct 03 '18 05:10 defagos

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.

defagos avatar Oct 11 '21 14:10 defagos