fix(ios): check for ios url query encoding (#3384)

Co-authored-by: Juozas Petkelis <juozas.petkelis@kilo.health>
This commit is contained in:
JuozasP
2023-11-26 22:20:29 +02:00
committed by GitHub
parent fe89122524
commit de4159f0c2

View File

@@ -299,7 +299,7 @@ enum RCTVideoUtils {
var asset:AVURLAsset!
let bundlePath = Bundle.main.path(forResource: source.uri, ofType: source.type) ?? ""
let url = source.isNetwork || source.isAsset
? URL(string: source.uri ?? "")
? URL(string: source.uri?.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "")
: URL(fileURLWithPath: bundlePath)
let assetOptions:NSMutableDictionary! = NSMutableDictionary()