Adds a new stream to the RTCPeerConnection.
Method of apis/webrtc/RTCPeerConnectionapis/webrtc/RTCPeerConnection
Syntax element.addStream();
Return Value
No return value
Examples
var connection, constraints, peerconnection;
var success, error;
connection = { iceServers: [{url: '...', credential: '...'} ,{...}] };
constraints = { optional: [...] };
peerconnection = RTCPeerConnection(connection, constraints);
success = function(stream){
peerconnection.addStream(stream);
};
error = function(err){
console.log(err);
};
navigator.getUserMedia({audio: true, video: true}, success, error);
Usage
If the RTCPeerConnection object's readyState is closed, throws an INVALID_STATE exception.
Otherwise, destroys the ICE agent, abruptly ending any active ICE processing, any active streaming, and releasing any relevant resources (e.g. TURN permissions); then sets the readyState to closed
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4