Fix default sideload text track for system caption setting
This commit is contained in:
parent
0d32a31b85
commit
fe26f54bfb
@ -783,7 +783,7 @@ static NSString *const timedMetadata = @"timedMetadata";
|
|||||||
NSArray *captionSettings = (__bridge NSArray*)captioningMediaCharacteristics;
|
NSArray *captionSettings = (__bridge NSArray*)captioningMediaCharacteristics;
|
||||||
if ([captionSettings containsObject: AVMediaCharacteristicTranscribesSpokenDialogForAccessibility]) {
|
if ([captionSettings containsObject: AVMediaCharacteristicTranscribesSpokenDialogForAccessibility]) {
|
||||||
// iterate through the textTracks to find a matching option, or default to the first object.
|
// iterate through the textTracks to find a matching option, or default to the first object.
|
||||||
selectedTrackIndex = firstTextIndex;
|
selectedTrackIndex = 0;
|
||||||
|
|
||||||
NSString * systemLanguage = [[NSLocale preferredLanguages] firstObject];
|
NSString * systemLanguage = [[NSLocale preferredLanguages] firstObject];
|
||||||
for (int i = 0; i < textTracks.count; ++i) {
|
for (int i = 0; i < textTracks.count; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user