meetecho / janode

A Node.js adapter for the Janus WebRTC server
ISC License
98 stars 36 forks source link

janode for a command line, voice-only client? #46

Closed alexandermaisey closed 1 month ago

alexandermaisey commented 1 month ago

Hello,

I was tasked with developing a command line voice-only (talk/listen) application that ultimately wouldn't have access to a browser. Our environment has a functioning Janus based infrastructure already in place.

Using Janode and its AudioBridge plugin, I'm able to connect, establish a session, join a room and request an SDP offer and send an answer. But I cannot, for the life of me, figure out how to "attach" a media stream from my audio input (and vice-versa, obtain a media stream to attach to a media stream to transmit to my audio out).

Is this possible? Or have I been barking up the wrong tree?

Thank you

atoppi commented 1 month ago

Janode is a signalling sdk. If you want to develop a CLI tool that also handle media you need to figure out of to do a lot of things in your runtime (often nodejs), eg: how to capture packets from the audio device, listen to udp ports, send packets over udp, forge RTP/RTCP packets and encrypt them with the DTLS keyring material and many other things. IMHO if you really want to use Janode for this task you must search for a webrtc implementation for your runtime (if it even exists). Otherwise off the top pf my head, there are way "simpler" alternatives like: