[expo-video][ios] Load video subtitles asynchronously
Samuel Newman
We can see in our Xcode stats that accessing availableMediaCharacteristicsWithMediaSelectionOptions is one of the leading causes of hangs in our app. This API is actually deprecated as of iOS 17:
It would be great if expo-video could use the new asynchronous API - it also just lets you query the
.legible
tracks, which is all that is needed.Looking at the code, it already loads the video source asynchronously in a Task - we'd just need to do the same for the subtitles on iOS16 and up.