-
Notifications
You must be signed in to change notification settings - Fork 305
API Reference
alongubkin edited this page Oct 10, 2014
·
27 revisions
Wiki ▸ API Reference
Everything in PhoneRTC is scoped under the phonertc
namespace.
A session represents a connection between 2 users.
# Session(config)
Constructs a new Session based on the config
parameter. The config
parameter should be an object with the following properties:
-
isInitiator
(boolean) - determines whether or not this session sends the WebRTC offer. -
turn
(object) - represents the details of the TURN server. Has 3 string properties:host
,username
andpassword
. -
streams
(object) - represents which tracks will be sent. Has 2 boolean properties:audio
,video
.