VLCKit and HTTP Basic Authentication

This forum is about all development around libVLC.
ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

VLCKit and HTTP Basic Authentication

Postby ssbmaccom » 26 Apr 2016 19:30

Hi,

customers reported to me, that some of thrm need to use basic authentication with their set top boxes. What is the best way to add this when opening media files for streaming via HTTP and maybe in the future via SMB. The App already has username and password and it works fibe using them in the NSURLSessions i have to use to gather the informations like EPG.

Of course i could use the username:password@hostname approach, but is there a more reasonable way? I do not want, that the user has to re-enter his credentials to a VLCKit provided dialog. It should simply work outof the box with credentials the app can provide. Using the --http-user etc. options when instanciating libVLC also does not look that reasonable to. A callback/delegate as with NSURLSession would be great.

SSB

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLCKit and HTTP Basic Authentication

Postby Jean-Baptiste Kempf » 28 Jun 2016 10:02

Use VLCKit 3.0 for this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests