fix(ios): revert ios url encoding as this breaks encoded urls (#3440)
This commit is contained in:
parent
bea268aa80
commit
0723481fee
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user