SRGSSR / srgmediaplayer-apple

An advanced media player library, simple and reliable
MIT License
158 stars 33 forks source link

On-demand audios not seekable on M1 #101

Closed defagos closed 1 year ago

defagos commented 3 years ago

For Mac M1 builds on-demand audios are not seekable. This issue is a problem of AVFoundation on M1 which must be reported to Apple.

Closer inspection of the issue reveals that on-demand audios have a single seekable time range whose duration is infinite. AVPlayerViewController with a vanilla AVPlayer suffers from the same issue.

Issue type

Incorrect behavior

Environment information

Reproducibility

Always reproducible

Steps to reproduce

  1. Build and run the SRG Media Player demo on M1.
  2. Open an on-demand audio (last tab) with any player.
  3. For all of them (including the one using only bare system components) the slider does not move and stays stuck at zero.

Other contents (including DVR audio) play fine.

defagos commented 1 year ago

A new issue has been created in https://github.com/SRGSSR/pillarbox-apple/issues/485. Closed.