protocol update: explicit AddTrack to move negotiation initiation to server side.

In order to avoid race conditions with WebRTC, where either side could initiate an offer when tracks have changes, we'll always initiate them from the SFU side.
This commit is contained in:
David Zhao
2021-01-09 23:40:29 -08:00
parent 0336e9d92f
commit 258f5add2d
34 changed files with 2218 additions and 1657 deletions
+7 -6
View File
@@ -48,15 +48,16 @@ message ParticipantInfo {
repeated TrackInfo tracks = 4;
}
enum TrackType {
AUDIO = 0;
VIDEO = 1;
DATA = 2;
}
// describing
message TrackInfo {
enum Type {
AUDIO = 0;
VIDEO = 1;
DATA = 2;
}
string sid = 1;
Type type = 2;
TrackType type = 2;
string name = 3;
bool muted = 4;
}