fix(ios): fix side loaded text track management (#4180)
This commit is contained in:
parent
41d3da9146
commit
7d43d5d3da
@ -600,7 +600,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
}
|
||||
|
||||
func playerItemPrepareText(source: VideoSource, asset: AVAsset!, assetOptions: NSDictionary?, uri: String) async -> AVPlayerItem {
|
||||
if source.textTracks.isEmpty != true || uri.hasSuffix(".m3u8") {
|
||||
if source.textTracks.isEmpty == true || uri.hasSuffix(".m3u8") {
|
||||
return await self.playerItemPropegateMetadata(AVPlayerItem(asset: asset))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user