Skip to content

Commit

Permalink
Fix default sideload text track for system caption setting
Browse files Browse the repository at this point in the history
  • Loading branch information
cobarx authored Jul 10, 2018
1 parent 0d32a31 commit fe26f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ - (void) setSideloadedText {
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) {
Expand Down

0 comments on commit fe26f54

Please sign in to comment.