Page 1 of 1

Basic Authentication not working with MobileVLCKit 3.0

Posted: 09 Sep 2018 06:51
by Mavro
Hi there --

I have successfully implemented MobileVLCKit 3.0 working in a basic iOS app using SWIFT language.
It playing non-authenticated content perfectly, however, these are IP Cameras and they have basic authentication enabled, so when I try and pass the username and password in the URL (example: http://test:test@192.168.1.239/axis-cgi/mjpg/video.cgi)it is not working.

Do I have to do something special?

Please help...

Thanks!

Re: Basic Authentication not working with MobileVLCKit 3.0

Posted: 09 Sep 2018 19:41
by Mavro
Found the issue after more testing, it looks it only breaks for basic authenticated HTTP content for AXIS cameras -- it is trying to use the "encrypted" authentication. If I set the camera to accept "unencrypted" it works. If I set AXIS to accept both "encrypted and unencrypted" is breaks, forcing it to try an accept only encrypted.

Not sure how to force VLC to not force AXIS Camera to use HTTPS?

What's interesting is that VLC 2.X works, but VLC 3.0 introduced this issue.

3.1.4... also has the same issue.

Re: Basic Authentication not working with MobileVLCKit 3.0

Posted: 09 Oct 2018 10:57
by virumax
Hi Mavro, I have also integrated MobileVLCKit for streaming IPCam video. In my case when IPCam streaming URL doesn't need any authentication it works fine but when URL needs authentication (username/password) VLC doesn't prompt for it. I think it should ask the user to enter credentials like VLC's all other apps do. Have you faced this issue and if yes have you resolved it?

Re: Basic Authentication not working with MobileVLCKit 3.0

Posted: 09 Oct 2018 13:04
by fkuehne
This is fixed in the latest MobileVLCKit version. Please update :)