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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...