Re: [webrtc-pc] Unable to figure out which receivers are "active".

Answer to my question above:

> Is the receiver able to receive as soon as you do SRD(offer), or will receiving not happen until later? At SLD(answer)? When the answer has been signaled to the remote endpoint?

For the answerer, according to [JSEP](https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24) 4.1.9, transmission does not start until SLD(answer). Here's the relevant quote:

> If setRemoteDescription was previously called with an offer, and
> setLocalDescription is called with an answer (provisional or final),
> and the media directions are compatible, and media is available to
> send, this will result in the starting of media transmission.

And for the offerer, transmission does not start until SRD(answer):

> If setLocalDescription was previously called with an offer, and
> setRemoteDescription is called with an answer (provisional or final),
> and the media directions are compatible, and media is available to
> send, this will result in the starting of media transmission.

At this point the full offer-answer cycle has occurred.

That means `isReceiving` would be misleading name. It's more like "sending is on offer, will receive if you complete the O/A without rejecting".
(Side-note: so "early media" only applies answerer -> offerer, not offerer -> answerer?)

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1920#issuecomment-402690455 using your GitHub account

Received on Thursday, 5 July 2018 11:19:10 UTC