Cookies management with Mobile VLC Kit

iOS, iPad, iPhone, tvOS specific usage questions
ashok@ashok
Blank Cone
Blank Cone
Posts: 15
Joined: 26 Oct 2015 12:06

Cookies management with Mobile VLC Kit

Postby ashok@ashok » 26 Oct 2015 13:17

Can we send or attach a cookie with Media Url for VLC?

ashok@ashok
Blank Cone
Blank Cone
Posts: 15
Joined: 26 Oct 2015 12:06

Re: Cookies management with Mobile VLC Kit

Postby ashok@ashok » 26 Oct 2015 13:18

Thanks in advance

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

Re: Cookies management with Mobile VLC Kit

Postby fkuehne » 26 Oct 2015 17:27

This is not supported as the underlying libvlc API does not have support to accept cookies. It can only handle cookies internally.

If you want to change that, patches are definitely welcome.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

ashok@ashok
Blank Cone
Blank Cone
Posts: 15
Joined: 26 Oct 2015 12:06

Re: Cookies management with Mobile VLC Kit

Postby ashok@ashok » 28 Oct 2015 10:32

Thanks for reply

I found this link https://github.com/videolan/vlc/blob/ma ... vlc_http.h where they create a function for append a http cookies

//*********************************************************************************************************//
typedef struct vlc_http_cookie_jar_t vlc_http_cookie_jar_t;

VLC_API vlc_http_cookie_jar_t * vlc_http_cookies_new( void ) VLC_USED;
VLC_API void vlc_http_cookies_destroy( vlc_http_cookie_jar_t * p_jar );

/**
* Parse a value of an incoming Set-Cookie header and append the
* cookie to the cookie jar if appropriate.
*
* @param p_jar cookie jar object
* @param psz_cookie_header value of Set-Cookie
* @return true, if the cookie was added, false otherwise
*/
VLC_API bool vlc_http_cookies_append( vlc_http_cookie_jar_t * p_jar, const char * psz_cookie_header, const vlc_url_t * p_url );

/**
* Returns a cookie value that match the given URL.
*
* @param p_jar a cookie jar
* @param p_url the URL for which the cookies are returned
* @return A string consisting of semicolon-separated cookie NAME=VALUE pairs.
*/
VLC_API char *vlc_http_cookies_for_url( vlc_http_cookie_jar_t * p_jar, const vlc_url_t * p_url );

#endif

//*********************************************************************************************************//


but in mobile kit this function are missing which is we download from VLCLAN portal .Can you please check if it is available for mobile vlc kit.
Actually we need cookie based authenticated url to play live streaming.

Thanks


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

Who is online

Users browsing this forum: No registered users and 10 guests