Access RTCPeerConnection of clients to achieve Audio streaming #159
-
WebRTC is amazing for streaming video or audio, it's used on different frameworks to have solid voice-chat / radio rooms. Geckos.io uses WebRTC, which makes me thing voice-chatting would run good on it. Is there any example on streaming data over Geckos.io? Has anyone come up with the feature I mentioned above. I'm down to start developing this feature, but I think I need some guidence on where to start and how Geckos.io would fit on here. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe I have to get access to the Update I've found I can access an instance of the PeerConnection with:
And here it is the RTCPeerConnection instance I need. But whenever I do console log of Seems that the class I want to be able to:
Accordingly to https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack to be able to initiate the streaming of audio. |
Beta Was this translation helpful? Give feedback.
-
node-datachannel can only handle client-server audio traffic. What you are probably looking for is a client-to-client WebRTC library? |
Beta Was this translation helpful? Give feedback.
node-datachannel can only handle client-server audio traffic.
What you are probably looking for is a client-to-client WebRTC library?