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:
+7
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user