Closed defagos closed 4 years ago
With recent changes to reduce the need for playback observers, it is easier to implement this feature. I already have a working first implementation (which needs to be tested on older devices), but this is promising enough to think it will be part of the next release.
Behavior could be extended for iOS 12 and below (since we are already tweaking the AirPlay icon).
Starting with iOS 13, a new
prioritizesVideoDevices
property has been added toAVRoutePickerView
. As the name suggests, this setting prioritizes video devices in the route list.It would be tempting to improve our current implementation as follows:
In effect, and if no custom icon has been provided at the
SRGAirPlayButton
level, the default route icon is either a TV AirPlay icon (prioritizesVideoDevice
set toYES
) or the audio AirPlay icon (set toNO
).We could use this new property, but this probably requires several icons to be defined, as well as a consistent behavior for iOS 12 and below. More work than I naively expected, thus this proper dedicated issue.