This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -1134,12 +1134,20 @@ - (void)setMediaSelectionTrackForCharacteristic:(AVMediaCharacteristic)character
1134
1134
}
1135
1135
}
1136
1136
} else { // default. invalid type or "system"
1137
- [_player.currentItem selectMediaOptionAutomaticallyInMediaSelectionGroup: group];
1138
- return ;
1137
+ #if TARGET_OS_TV
1138
+ // Do noting. Fix for tvOS native audio menu language selector
1139
+ #else
1140
+ [_player.currentItem selectMediaOptionAutomaticallyInMediaSelectionGroup: group];
1141
+ return ;
1142
+ #endif
1139
1143
}
1140
-
1141
- // If a match isn't found, option will be nil and text tracks will be disabled
1142
- [_player.currentItem selectMediaOption: mediaOption inMediaSelectionGroup: group];
1144
+
1145
+ #if TARGET_OS_TV
1146
+ // Do noting. Fix for tvOS native audio menu language selector
1147
+ #else
1148
+ // If a match isn't found, option will be nil and text tracks will be disabled
1149
+ [_player.currentItem selectMediaOption: mediaOption inMediaSelectionGroup: group];
1150
+ #endif
1143
1151
}
1144
1152
1145
1153
- (void )setSelectedAudioTrack : (NSDictionary *)selectedAudioTrack {
You can’t perform that action at this time.
0 commit comments