Ability to set name on Participant (#293)

This commit is contained in:
David Zhao
2021-12-28 00:12:04 -08:00
committed by GitHub
parent b747cdb822
commit 3108ef22ad
9 changed files with 20 additions and 7 deletions
+2
View File
@@ -37,6 +37,7 @@ const (
type ParticipantParams struct {
Identity string
Name string
SID string
Config *WebRTCConfig
Sink routing.MessageSink
@@ -226,6 +227,7 @@ func (p *ParticipantImpl) ToProto() *livekit.ParticipantInfo {
info := &livekit.ParticipantInfo{
Sid: p.params.SID,
Identity: p.params.Identity,
Name: p.params.Name,
Metadata: p.metadata,
State: p.State(),
JoinedAt: p.ConnectedAt().Unix(),