Jump to content
  • 0

Custom Turn Server


Rajesh GS
 Share

Question

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

You can enable TURN server for publishing and playing pages.

 For instance on your publishing page(/usr/local/antmedia/webapps/WebRTCAppEE/index.html), there is pc_config JavaScript variable like this:

var pc_config = {
       'iceServers' : [ { 
                'urls' : 'stun:stun.l.google.com:19302' 
         } ] 
 };

You can just change its value according to your TURN configuration like below:

var pc_config = {
       iceServers: [
                    { urls: "turn:{TURN_SERVER_URL}",
                       username: "{TURN_SERVER_USERNAME}",
                       credential: "{TURN_SERVER_PASS}",
                    }
                  ]
 }; 
Best Regards,
Enes. 
Link to comment
Share on other sites

 Share


×
×
  • Create New...