SRGSSR / srgmediaplayer-apple

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

Audio selection persistence API? #82

Closed defagos closed 2 years ago

defagos commented 4 years ago

MediaAccessibility provides a way to save user preferences for subtitles. While this crosses app boundaries so that the choice is reflected in other apps, we could provide an API so that apps can easily persist their language choice.

This requires more though, though. We would then probably require the same level of information as for subtitles when the active language is not available for the content currently being played. We would also need to decide whether we want a similar (but simpler) C API, or something else.

defagos commented 2 years ago

We implemented this feature in our application based on existing SRG Media Player APIs. Since there is no cross-app persistence anyway, no dedicated API is really needed here.