sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.32k stars 350 forks source link

Can libsourcey be used as a WebRTC peer... #228

Closed videodoctor closed 6 years ago

videodoctor commented 6 years ago

to pull and record streams from another WebRTC engine? If there's an example of this approach, I'd greatly appreciate seeing it.

auscaster commented 6 years ago

Yes it can, please check the webrtcrecorder sample code. You can record a remote webrtc stream using most video formats using ffmpeg.

videodoctor commented 6 years ago

Thank you for the quick reply. I did look over the webrtcrecorder code, but that looked primarily to be a server example that accepts streams from browser sessions? In my use case, I already have a WebRTC server that's accepting/managing client connections, but it's record capabilities are gruesome. I'd love to be able to build a server-side client that can connect to an existing WebRTC session on the other server, consume the session streams, and record them. I don't doubt that libsourcey can do this. Most of my server-side experience has been with Wowza Streaming Engine and rtmp-based video conferencing.

auscaster commented 6 years ago

I dont think libsourcey has anything out of the box for this, but perhaps the recording layer code in the sample can be of use to you if you choose to roll your own solution.