url scheme doesn't work with percent-encoded white space url

macOS specific usage questions
pakker
New Cone
New Cone
Posts: 1
Joined: 24 Dec 2013 08:22

url scheme doesn't work with percent-encoded white space url

Postby pakker » 24 Dec 2013 08:29

Code: Select all

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://mywebsite.com/abc%20def.avi"]];
looks like the url parser in VLC has bug there...

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: url scheme doesn't work with percent-encoded white space url

Postby shaybc » 01 May 2016 15:51

did any one ever fixed this issue? i am still suffering from it, and escaping the URL did not work.
if the URL has special characters (other then spaces) - it still behaves badly.

i am using TVVLCKit from swift in the following manner:

Code: Select all

let currentURL: NSURL = NSURL(string: "\(currentPath.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet())!)")! self.currentMedia = VLCMedia(URL: currentURL)
if the URL is:
smb://PC1/Shay's Folder
or:
smb://PC1/Shay'sFolder

it will cause it to crash,

but if the URL is simple like this:
smb://PC1/ShaysFolder

it will work!

Shay.BC.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests