This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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.