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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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