curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: multi interface and RTSP interleved

From: Erik Janssen <erik.janssen_at_axis.com>
Date: Wed, 18 Jan 2017 08:57:24 +0000

Hi Pawel,

Sorry to respond months after the fact. I scanned the list for RTSP and found this one.

Daniels comment is really important. You must set the CURL_RTSPREQ_RECEIVE before adding it to the multi, otherwise the handle has nothing to do and will fall-through like you observed.

So:


   rtsp_play(rtsp_handle, uri, "0.000-");
   curl_easy_setopt(rtsp_handle, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_RECEIVE);
   multi_handle = curl_multi_init();

   /* add the individual transfers */
   curl_multi_add_handle(multi_handle, rtsp_handle);
   etc…

curl_multi works fine with interleaved RTSP as long as per server you have only one curl handle in your application communicating with it, or you can give all your handles the same callback, then, in the callback you fiddle out the correct identity of the stream by looking at the SSRC, because curl may mix them.


Erik

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-18