onaddstream
Summary
Handles the addstream event fired when setRemoteDescription() is called.
Property of apis/webrtc/RTCPeerConnectionapis/webrtc/RTCPeerConnection
Syntax
var result = element.onaddstream;
element.onaddstream = value;
Notes
This is called any time a MediaStream is added by the remote peer. This will be fired only as a result of setRemoteDescription(). The onnaddstream callback happens as early as possible after setRemoteDescription(), it does not wait for a given media stream to be accepted or rejected via SDP negotiation.