Page 1 of 1

Cookies management with Mobile VLC Kit

Posted: 26 Oct 2015 13:17
by ashok@ashok
Can we send or attach a cookie with Media Url for VLC?

Re: Cookies management with Mobile VLC Kit

Posted: 26 Oct 2015 13:18
by ashok@ashok
Thanks in advance

Re: Cookies management with Mobile VLC Kit

Posted: 26 Oct 2015 17:27
by fkuehne
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.

Re: Cookies management with Mobile VLC Kit

Posted: 28 Oct 2015 10:32
by ashok@ashok
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