curl-and-python

RE: Curl RTSP Commands not Available in Python?

From: Utsav Sabharwal <tashywashysachy_at_live.in>
Date: Wed, 7 Mar 2012 19:58:58 +0530

> Oh ok I see. 
>  To add the RTSP functionality to pycURL, is it a matter of adding the RTSP options to pycurl.c ? 
> Example just adding the lines: 
>  insint_c(d, "RTSP_STREAM_URI", CURLOPT_RTSP_STREAM_URI); 
>  insint_c(d, "RTSP_REQUEST", CURLOPT_RTSP_REQUEST); 
>  ... for each of the functions ? 
>  Am I on the right track? 
Apart from initiating you would the code must also handle the case of function objects for callbacks.

Moreover linked LIBCURL_VERSION should be 7.20.0 or greater to support RTSP Commands.

Example:

(Line No. 3705)

insint_c(d, "SEEKFUNCTION", CURLOPT_SEEKFUNCTION); 

(Line No. 2128 - 2135)

        case CURLOPT_SEEKFUNCTION:            Py_INCREF(obj);            ZAP(self->seek_cb);            self->seek_cb = obj;            curl_easy_setopt(self->handle, CURLOPT_SEEKFUNCTION, seek_cb);            curl_easy_setopt(self->handle, CURLOPT_SEEKDATA, self);            break;

d_r_a_g_o_s
                                               
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2012-03-07