SRGSSR / srgletterbox-apple

The official SRG SSR media playback experience
https://srgssr.github.io/marketing/letterbox/
MIT License
14 stars 7 forks source link

Incorrect playback state for livestream without DVR when the playback interrupted by the system #185

Closed pyby closed 4 years ago

pyby commented 5 years ago

From the Letterbox specification, a livestream without DVR window can't be in the pause state. It can only have play and idle playback state. The user must always in the live condition, as there is no seek bar or seek buttons.

Issue type

Incorrect behavior

Description of the problem

When the playback is interrupted by the system, like a alarm, or an other application takes the audio session, the controller goes in the pause state, even if it's a SRGMediaPlayerStreamTypeLive content.

Environment information

Reproducibility

Always reproducible

Steps to reproduce

More easy to see on an iPad with a video livestream, but this not only on this device and this kind of media.

  1. Open Letterbox Demo in split view with an other music / video app in the other side. (Like a Play SRG app or an other Letterbox demo app).
  2. Play a "live only" video on Letterbox Demo. The player has only "Play" and "Stop" buttons (no "Pause" button. ie: MMF Topics / bipbop RTSInfo Tagesschau24 / Tagesschau24 (ARD, live only)
  3. On the other app, start an audio or a video.

Letterbox Demo player stops the playback but don't stops de AVPlayer. The frame is in pause and when tapping on the Play button, it resumes it. The stream isn't in live condition anymore.

pyby commented 5 years ago

See feature/playback-interruption.

defagos commented 4 years ago

Merged into develop.