From 0723481fee75890bc2fff967e3b5bc8946e481a3 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 24 Dec 2023 14:32:24 +0100 Subject: [PATCH] fix(ios): revert ios url encoding as this breaks encoded urls (#3440) --- ios/Video/Features/RCTVideoUtils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Video/Features/RCTVideoUtils.swift b/ios/Video/Features/RCTVideoUtils.swift index d812c52d..575552d3 100644 --- a/ios/Video/Features/RCTVideoUtils.swift +++ b/ios/Video/Features/RCTVideoUtils.swift @@ -307,7 +307,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?.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "") + ? URL(string: source.uri ?? "") : URL(fileURLWithPath: bundlePath) let assetOptions: NSMutableDictionary! = NSMutableDictionary()