WebRTC and Websockets. Is there a difference

There’s two sides to WebRTC. JavaScript APIs (getUserMedia) that allow an app to access camera and microphone hardware. You can use this access to simply display the stream locally (perhaps applying effects), or send the stream over the network. You could send the data to your server, or you could use… PeerConnection, an API that … Read more

Sending a MediaStream to host Server with WebRTC after it is captured by getUserMedia

You cannot upload the live stream itself while it is running. This is because it is a LIVE stream. So, this leaves you with a handful options. Record the audio stream using one of the many recorders out there RecordRTC works fairly well. Wait until the stream is completed and then upload the file. Send … Read more

STUN/TURN server connectivity test

Edit: A nice implementation in github.io taken from comment to another answer( choose “relay” in IceTransports value): Test TURN Server following Benjamin Trent’s advice, I wrote the below code to test TURN server’s connectivity, works on both firefox n chrome: function checkTURNServer(turnConfig, timeout){ return new Promise(function(resolve, reject){ setTimeout(function(){ if(promiseResolved) return; resolve(false); promiseResolved = true; }, … Read more

WebRTC AGC (Automatic Gain Control)

Here is the sequence of operations to be used for Webrtc_AGC: Create AGC: WebRtcAgc_Create Initialize AGC: WebRtcAgc_Init Set Config: WebRtcAgc_set_config Initialize capture_level = 0 For kAgcModeAdaptiveDigital, invoke VirtualMic: WebRtcAgc_VirtualMic Process Buffer with capture_level: WebRtcAgc_Process Get the out capture level returned from WebRtcAgc_Process and set it to capture_level Repeat 5 to 7 for the audio buffers … Read more

How does WebRTC work?

WebRTC gives SDP Offer to the client JS app to send (however the JS app wants) to the other device, which uses that to generate an SDP Answer. The trick is that the SDP includes ICE candidates (effectively “try to talk to me at this IP address and this port”). ICE works to punch open … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)