curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

using curl for streaming rtsp/rtp over tcp

From: Abhijeet Bhagat via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 20 Jun 2021 16:14:54 +0200
i am using libcurl to send rtsp commands (over tcp) to a server. usually, when i want to stream over udp, i have to allocate udp ports and share them with the server in the setup command. however, when using tcp, i can tell the server to start sending rtp packets over the same tcp port used to send commands in an interleaved fashion right after an rtsp play command is sent.

in wireshark, i can see that the rtsp tcp port (the one to send commands) is receiving these rtp packets. however, i can't seem to find a way to get hold of them. i was expecting CURLOPT_WRITEFUNCTION to get repeatedly called with the packet but that isn't happening.

is there a curl function like CURLOPT_WRITEFUNCTION that can act as a 'stream receiver'?
 
-best,
abhi
 

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-06-20