On Sun, 20 Jun 2021, at 15:14, Abhijeet Bhagat via curl-library wrote:

> i am using libcurl to send rtsp commands (over tcp) to a server.
I did a very similar exercise quite a few years ago (but am a bit rusty on the 
subject)

> i was expecting CURLOPT_WRITEFUNCTION to get repeatedly called with the 
> packet but that isn't happening.
After sending the CURL_RTSPREQ_PLAY, try adding something like

curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &rtp_data);
curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_RECEIVE);
curl_easy_perform(curl);
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to