Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Conversation

@jianjunz
Copy link
Collaborator

Implement perfect negotiation to avoid collision.

@jianjunz jianjunz added the enhancement New feature or request label Mar 25, 2021
@jianjunz jianjunz added the wip Working in progress label Mar 25, 2021
@jianjunz jianjunz removed the wip Working in progress label Apr 7, 2021

## Connections

We expect only one `PeerConnection` between two endpoints. A random ID is generated when creating a new `PeerConnection`. All messages (offers, answers, ICE candidates) for this `PeerConnection` have a `connectionId` property with the connection ID as its value.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clarify if Client A and Client B sets up the peer connection, will connectionId value to be the same for both?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Connection ID is shared by both clients.


## Behaviors

When WebRTC collision occurred, it basically follows the perfect negotiation example in WebRTC 1.0. This section only describes the implementation for signaling collision.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

occurs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@jianjunz jianjunz merged commit 69f10a4 into open-webrtc-toolkit:master Apr 15, 2021
@jianjunz jianjunz deleted the p2p-session branch April 15, 2021 06:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants