ID -> SID

This commit is contained in:
David Zhao
2020-12-04 23:04:24 -08:00
parent 64b427a388
commit c401a6fdab
7 changed files with 72 additions and 69 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ func (c *RTCClient) Run() error {
}
switch msg := res.Message.(type) {
case *livekit.SignalResponse_Join:
c.AppendLog("join accepted, sending offer..", "participant", msg.Join.Participant.Id)
c.AppendLog("join accepted, sending offer..", "participant", msg.Join.Participant.Sid)
c.localParticipant = msg.Join.Participant
c.AppendLog("other participants", "count", len(msg.Join.OtherParticipants))
@@ -243,7 +243,7 @@ func (c *RTCClient) Run() error {
}
case *livekit.SignalResponse_Update:
for _, p := range msg.Update.Participants {
c.AppendLog("participant update", "id", p.Id, "state", p.State.String())
c.AppendLog("participant update", "id", p.Sid, "state", p.State.String())
}
}
}