Merged changes from main

This commit is contained in:
Alex Kim
2024-12-13 16:39:58 +11:00
7 changed files with 46 additions and 42 deletions

View File

@@ -127,7 +127,7 @@ export class SubtitleHelper {
// This function aims to get the source subtitle index from the embedded track index.
getSourceSubtitleIndex = (embeddedTrackIndex: number): number => {
if (Platform.OS === "android") {
return this.getSubtitles()[embeddedTrackIndex]?.Index ?? -1;
return this.getTextSubtitles()[embeddedTrackIndex]?.Index ?? -1;
}
return this.getUniqueTextBasedSubtitles()[embeddedTrackIndex]?.Index ?? -1;
};