Spaces in vlc-x-callback URL?

iOS, iPad, iPhone, tvOS specific usage questions
Bond007
New Cone
New Cone
Posts: 2
Joined: 01 Jan 2016 01:55

Spaces in vlc-x-callback URL?

Postby Bond007 » 01 Jan 2016 02:04

Anybody having trouble getting vlc-x-callback to work with URL's that contain spaces? I'm on 2.7.1.

I can get this to work:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest.mkv (vlc-x-callback://x-callback-url/stream?url=http://192.168.0.2/movies/test.mkv)
but not this:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest%202.mkv (vlc-x-callback://x-callback-url/stream?url=http://192.168.0.2/movies/test 2.mkv)
With the space, it does successfully launch the VLC app but it just shows the "Empty Media Library" screen (or whatever the last screen I was on).

Looking over the revision history, I see there was once an FTP issue about spaces in URL's that was fixed in 2.2.1. Not sure if it's a similar issue but with vlc-x-callback now.

Bond007
New Cone
New Cone
Posts: 2
Joined: 01 Jan 2016 01:55

Re: Spaces in vlc-x-callback URL?

Postby Bond007 » 01 Jan 2016 18:34

OK, I was able to find a workaround for this. It's definitely an issue in 2.7.1, but you can work around it "double-encoding" a space character. Encode a percent sign (%25) followed by a space (%20) but without the %. In other words, use:

Code: Select all

%2520 => %25 becomes '%', so this becomes '%20', which then gets URL-decoded as a space
In my case, for my "test 2.mkv" file, my URL becomes:

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest%25202.mkv

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Spaces in vlc-x-callback URL?

Postby fkuehne » 02 Jan 2016 15:10

Yep, that's a regression in 2.7.x - will fix for 2.7.2.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 47 guests