Client configuration (#452)

* client configuration

* fix init roommanager
This commit is contained in:
cnderrauber
2022-03-03 18:26:14 +08:00
committed by GitHub
parent 96654e164a
commit 4bc03d8435
11 changed files with 289 additions and 14 deletions
+3 -1
View File
@@ -60,6 +60,7 @@ type ParticipantParams struct {
SimTracks map[uint32]SimulcastTrackInfo
Grants *auth.ClaimGrants
InitialVersion uint32
ClientConf *livekit.ClientConfiguration
}
type ParticipantImpl struct {
@@ -612,7 +613,8 @@ func (p *ParticipantImpl) SendJoinResponse(
ServerRegion: region,
IceServers: iceServers,
// indicates both server and client support subscriber as primary
SubscriberPrimary: p.SubscriberAsPrimary(),
SubscriberPrimary: p.SubscriberAsPrimary(),
ClientConfiguration: p.params.ClientConf,
},
},
})