web api instance property
MediaStreamEvent: stream property
The read-only property MediaStreamEvent.stream returns
the MediaStream associated with the event.
Example
pc.onaddstream = (ev) => {
alert(`A stream (id: '${ev.stream.id}') has been added to this connection.`);
};
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.