playsrg-apple
playsrg-apple copied to clipboard
Incorrect Google Cast behavior with downloaded content
The Google Cast player is not displayed (the usual player is instead) when Google Casting a downloaded media. The media is not played on the receiver.
Issue type
Incorrect behavior
Environment information
- Application version: 2.9.3
- iOS version: Any
- Device: Any
Reproducibility
Always reproducible
Steps to reproduce
- Open Play SRG and download an audio media.
- After the media has been fully downloaded, open it and play it on a Google Cast receiver.
- Instead of the Google Cast player being displayed, the original player is is presented, and media playback continues locally. No playback resumes on the Google Cast receiver.
The code to deal with this special case (no media composition, only a media) has simply never been written 🙃
I see two ways of solving this issue:
- We implement it properly (but currently most of Google Cast setup code requires a media composition).
- We disable Google Cast for downloaded medias (uglier but straightforward to implement).