Externally loaded text tracks not loading properly (#3461)
* fix text tracks * keep map * use where * update change log * fix build error
This commit is contained in:
@@ -18,7 +18,7 @@ enum RCTPlayerOperations {
|
||||
|
||||
// The first few tracks will be audio & video track
|
||||
var firstTextIndex = 0
|
||||
for i in 0 ..< trackCount where (player?.currentItem?.tracks[i].assetTrack?.hasMediaCharacteristic(.legible)) != nil {
|
||||
for i in 0 ..< trackCount where player?.currentItem?.tracks[i].assetTrack?.hasMediaCharacteristic(.legible) ?? false {
|
||||
firstTextIndex = i
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user