From de4159f0c2825a58d88f3882215da4bf51fdbeb2 Mon Sep 17 00:00:00 2001 From: JuozasP Date: Sun, 26 Nov 2023 22:20:29 +0200 Subject: [PATCH] fix(ios): check for ios url query encoding (#3384) Co-authored-by: Juozas Petkelis --- 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 bde3f309..6df65d9a 100644 --- a/ios/Video/Features/RCTVideoUtils.swift +++ b/ios/Video/Features/RCTVideoUtils.swift @@ -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()