node-webrtc / node-webrtc-examples

MediaStream and RTCDataChannel examples using node-webrtc
508 stars 161 forks source link

Transmitting video via webrtc point to point using the commandline #6

Closed marlocarlo closed 3 years ago

marlocarlo commented 4 years ago

Hello, Is it possible for me to use node webrtc to redirect video coming in from standard input to another client?

Would any of these examples help me in accomplishing this? Thanks, Marlo

markandrus commented 4 years ago

Yes, take a look at the RTCVideoSource API. You just need to read the bytes from stdin, in the appropriate format, and pipe them to the RTCVideoSource.