Implementing our own STUN/TURN server for WebRTC Application [duplicate]

TURN it’s an extension of STUN, so TURN server has also STUN features. https://code.google.com/p/rfc5766-turn-server/ works also as a STUN, so you can try to write something like this: var pc_config = { “iceServers”: [{ “url”:”turn:my_username@<turn_server_ip_address>”, “credential”:”my_password” }] }; pc_new = new webkitRTCPeerConnection(pc_config);

WebRTC – How many STUN/TURN servers do I need to specify?

A STUN server is used to get an external network address. TURN servers are used to relay traffic if direct (peer to peer) connection fails. URLs for STUN and/or TURN servers are (optionally) specified by a WebRTC app in the iceServers configuration object that is the first argument to the RTCPeerConnection constructor. example of using … Read more

Creating a webRTC peer *without* a browser, with just a JavaScript interpreter

Very late answer, but I think it’s good to re-evaluate this question, because a lot has changed since this question was asked. I assume this question was asked because there was no native support for webrtc yet at the time. But there is now. Android, iOS, Windows, Linux and OSX all support native webrtc libraries … Read more

WebRTC remote video is shown as black

You may need to add <uses-permission android:name=”android.permission.RECORD_AUDIO” /> <uses-permission android:name=”android.permission.CAMERA” /> into your AndroidManifest.xml I verified WebRTC works with https://download.01.org/crosswalk/releases/crosswalk/android/beta/7.36.154.12/ and https://apprtc.appspot.com/ on my Nexus 5. Hope it works for you.

WebRTC on local network? [closed]

At least one machine needs to be a server, in the sense that it needs to have a port open that it listens on. This is a fact of life with all connections; when one machine opens a connection, there needs to be another machine on the other end that responds. Without this, no connections … Read more

CoTURN: How to use TURN REST API?

Few things to be clarified here are: GET /?service=turn&username=mbzrxpgjys which returns a JSON, is just a suggested uri for retrieving time-limited TURN credentials from the server, you do not have to follow that, your uri can be just /?giveMeCredentials. In fact, I use my socket connection to retrieve this data, not direct http call with … Read more

WebRTC can’t get a video feed from a USB input device (readyState goes to ended)

The specs on Media Capture Streams state that during the life-cycle of a MediaStreamTrack the live state may be replaced by zero-information-content if the MST has either been “muted” or “disabled”.This will result in rendering black frames. In other words media can only flow from the source if the MST is both, unmuted and enabled. … Read more

navigator.mediaDevices is undefined

APIs with functions like getUserMedia, getDisplayMedia and enumerateDevices require a secure context, access to these from http: origins has been removed in Chrome back in 2019 For development, the easiest solution may be to create a self-signed certificate. –UPDATE– For development the easiest solution is to run from localhost, as that’s considered secure – see … Read more