Function WebRTCPeerConnection.initialize
Re-initialize this peer connection, closing any previously active connection, and going back to state constant STATE_NEW
. A dictionary of options
can be passed to configure the peer connection.
Valid options
are:
{
"iceServers": [
{
"urls": "stun:stun.example.com:3478"
, # One or more STUN servers.
},
{
"urls": "turn:turn.example.com:3478"
, # One or more TURN servers.
"username": "a_username", # Optional username for the TURN server.
"credentials": "a_password", # Optional password for the TURN server.
}
]
}