WebRTC Login

465 views
Skip to first unread message

B. Wayne

unread,
Jun 18, 2013, 2:31:06 PM6/18/13
to discuss...@googlegroups.com
Hello All,

I am a newb so bear with me...

I was looking at the source of https://apprtc.appspot,com a demo application of WebRTC's website. I have question regarding following snippet.

...
<body>
<script type="text/javascript">
  var channelToken = 'AHRlWrriku5s-9JF4CkubPScZ5z5vgyss5sA4Q3ncKc9U81qZvFeipuD7n4qAlmWz0I7vBuLe_Kj5SV_jShAhm3T1FrNAbCas1-BaplM9gRSwDlOk4xD5xg';
  var me = '25651980';
  var roomKey = '59013813';
  var initiator = 0;
  var pcConfig = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}]};
  var pcConstraints = {"optional": [{"DtlsSrtpKeyAgreement": true}]};
  var offerConstraints = {"optional": [], "mandatory": {}};
  var mediaConstraints = {"audio": true, "video": {"mandatory": {}, "optional": []}};
  var stereo = false;

  setTimeout(initialize, 1);
</script>

where/how are the channelToken, roomKey, roomLink and other var's values are generated and assigned? Do I have to use google's STUN servers?

Thank you in advance. 

Alexandre GOUAILLARD

unread,
Jun 18, 2013, 3:03:22 PM6/18/13
to discuss...@googlegroups.com
hi B wayne,

the webpage is generated from a template by the web server.
on line 284 you have the main class which computes those values and use them to render the template.

you do not have to use google stun (or turn server) if you don't want to. If you have your own servers you can pass them by using the ss, ts, tp (stun server, turn server, turn password respectively) on the url manually. If you have nothing, the code provides you with a complete solution. Optionally, get the source code, modify it, and upload it in GAE to have a fully modified version of the apprtc version running.

alex.



--
 
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

B. Wayne

unread,
Jun 19, 2013, 12:13:26 PM6/19/13
to discuss...@googlegroups.com
Thank you for the reply Alex. One more question,

I was looking through the apprtc.py and I was wondering how is the authentication of stun:stun.l.google.com:19302 done? like username or password?

Thank you again!

Philipp Hancke

unread,
Jun 19, 2013, 12:37:38 PM6/19/13
to discuss...@googlegroups.com
STUN typically doesn't require authentication -- TURN does and the process apprtc uses is described at
https://docs.google.com/document/d/1mG7eXFQ5o-ypMWQ1IzdkBQL0UBkLN1xXUJhJcIF5ujQ/edit


Oleg Moskalenko

unread,
Jun 19, 2013, 3:12:34 PM6/19/13
to discuss...@googlegroups.com, philipp...@googlemail.com
A detailed description how TURN REST API works can be found here, scroll down to the section "TURN REST API":

http://code.google.com/p/rfc5766-turn-server/wiki/Readme
Reply all
Reply to author
Forward
0 new messages