For the peer who wants to initiate a restart (renegotiation), it needs to have the greatest peerPriorityWeight so that he is the offerer and is able to create required transceivers and update the offer SDP.
Created a new private method setGreatestPeerPriorityWeight
Calling setGreatestPeerPriorityWeight from restartPeerConnection before sending the restart SIG message
Purpose of this PR:
For the peer who wants to initiate a restart (renegotiation), it needs to have the greatest peerPriorityWeight so that he is the offerer and is able to create required transceivers and update the offer SDP.
setGreatestPeerPriorityWeight
setGreatestPeerPriorityWeight
fromrestartPeerConnection
before sending therestart
SIG messageSee ESS-1458 for more details.