diff --git a/ios/Video/Features/RCTPlayerOperations.swift b/ios/Video/Features/RCTPlayerOperations.swift index d1ca88a9..4b579a05 100644 --- a/ios/Video/Features/RCTPlayerOperations.swift +++ b/ios/Video/Features/RCTPlayerOperations.swift @@ -27,7 +27,7 @@ enum RCTPlayerOperations { var selectedTrackIndex: Int = RCTVideoUnset - if type == "disabled" { + if (type == "disabled") || (type == "none") || (type == "") { // Select the last text index which is the disabled text track selectedTrackIndex = trackCount - firstTextIndex } else if type == "language" { @@ -92,7 +92,7 @@ enum RCTPlayerOperations { return } - if type == "disabled" { + if (type == "disabled") || (type == "none") || (type == "") { // Do nothing. We want to ensure option is nil } else if (type == "language") || (type == "title") { let value = criteria?.value as? String