The reasons I'm confused are:
- When my media stream is detected: My camera or microphone permission is allowed.
- When an offer is set in my local SDP using setLocalDescription
- When receiving the other party's answer and registering as Remote SDP using setRemoteDescription
The second question is Is the stream received through event.streams[0] the other party's stream or my stream?
I've read the MDN documentation, but it's an unfamiliar concept and I don't quite understand it.