From fe26f54bfb94a72ae8bd9a5109f5c61ef9fa8964 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Mon, 9 Jul 2018 21:08:40 -0700 Subject: [PATCH] Fix default sideload text track for system caption setting --- ios/RCTVideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTVideo.m b/ios/RCTVideo.m index 86842e96..e155e7d2 100644 --- a/ios/RCTVideo.m +++ b/ios/RCTVideo.m @@ -783,7 +783,7 @@ static NSString *const timedMetadata = @"timedMetadata"; NSArray *captionSettings = (__bridge NSArray*)captioningMediaCharacteristics; if ([captionSettings containsObject: AVMediaCharacteristicTranscribesSpokenDialogForAccessibility]) { // iterate through the textTracks to find a matching option, or default to the first object. - selectedTrackIndex = firstTextIndex; + selectedTrackIndex = 0; NSString * systemLanguage = [[NSLocale preferredLanguages] firstObject]; for (int i = 0; i < textTracks.count; ++i) {