fix(ios): revert ios url encoding as this breaks encoded urls (#3440)

This commit is contained in:
Konstantin 2023-12-24 14:32:24 +01:00 committed by GitHub
parent bea268aa80
commit 0723481fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,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?.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "") ? URL(string: source.uri ?? "")
: URL(fileURLWithPath: bundlePath) : URL(fileURLWithPath: bundlePath)
let assetOptions: NSMutableDictionary! = NSMutableDictionary() let assetOptions: NSMutableDictionary! = NSMutableDictionary()