Basic Authentication not working with MobileVLCKit 3.0

iOS, iPad, iPhone, tvOS specific usage questions
Mavro
New Cone
New Cone
Posts: 3
Joined: 09 Sep 2018 06:45

Basic Authentication not working with MobileVLCKit 3.0

Postby Mavro » 09 Sep 2018 06:51

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!

Mavro
New Cone
New Cone
Posts: 3
Joined: 09 Sep 2018 06:45

Re: Basic Authentication not working with MobileVLCKit 3.0

Postby Mavro » 09 Sep 2018 19:41

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.

virumax
New Cone
New Cone
Posts: 1
Joined: 09 Oct 2018 10:51

Re: Basic Authentication not working with MobileVLCKit 3.0

Postby virumax » 09 Oct 2018 10:57

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?
Last edited by virumax on 09 Oct 2018 13:49, edited 1 time in total.

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

Re: Basic Authentication not working with MobileVLCKit 3.0

Postby fkuehne » 09 Oct 2018 13:04

This is fixed in the latest MobileVLCKit version. Please update :)
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: Bing [Bot] and 2 guests