You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
The updated signalling in webrtc-from-chat (specifically addTrack -> addTransceiver) causes onnegotiationneeded to be fired on the callee and another round-trip of video-offer/video-answer.
Is this behaviour expected and correct?
It seems expensive to require another round of video-offer/video-answer. Replacing addTransceiver with addTrack restores the old behaviour.
The difference is in the Answer SDP:
addTrack puts a=sendrecv
addTransceiver puts a=recvonly
Presumably a=recvonly is the reason why the callee initiates the video-offer round-trip. I have seen recvonly mentioned in the posts on Advancing WebRTC; is this behaviour mandatory now?
Old signalling (addTrack)
caller: sends video-offer
callee: sends video-answer
=== call is connected ===
New signalling (addTransceiver)
caller: sends video-offer
callee: sends video-answer (call not connected yet)
callee: onnegotiationneeded is fired
callee: sends video-offer
caller: sends video-answer
=== call is connected ===
The text was updated successfully, but these errors were encountered:
space88man
changed the title
webrtc-from-chat: addTransceiver: cause another round trip video-offer/video-answer from callee
webrtc-from-chat: addTransceiver: causes an extra video-offer/video-answer from callee
Aug 6, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The updated signalling in webrtc-from-chat (specifically
addTrack
->addTransceiver
) causesonnegotiationneeded
to be fired on the callee and another round-trip of video-offer/video-answer.Is this behaviour expected and correct?
It seems expensive to require another round of video-offer/video-answer. Replacing
addTransceiver
withaddTrack
restores the old behaviour.The difference is in the Answer SDP:
a=sendrecv
a=recvonly
Presumably
a=recvonly
is the reason why the callee initiates the video-offer round-trip. I have seenrecvonly
mentioned in the posts on Advancing WebRTC; is this behaviour mandatory now?Old signalling (addTrack)
caller: sends video-offer
callee: sends video-answer
=== call is connected ===
New signalling (addTransceiver)
caller: sends video-offer
callee: sends video-answer (call not connected yet)
callee: onnegotiationneeded is fired
callee: sends video-offer
caller: sends video-answer
=== call is connected ===
The text was updated successfully, but these errors were encountered: