Unverified Commit fe26f54b authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Fix default sideload text track for system caption setting

parent 0d32a31b
Loading
Loading
Loading
Loading
+1 −1
Changes for ios/RCTVideo.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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) {