Add FastPublish in JoinResponse (#2964)

Set FastPublish in JoinResponse for participant can publish
and no ice fallback setting.
This commit is contained in:
cnderrauber
2024-08-28 12:00:28 +08:00
committed by GitHub
parent bde702d9c9
commit 16896e4d66
7 changed files with 151 additions and 3 deletions
+4
View File
@@ -1179,6 +1179,10 @@ func (p *ParticipantImpl) IsPublisher() bool {
return p.isPublisher.Load()
}
func (p *ParticipantImpl) CanPublish() bool {
return p.grants.Load().Video.GetCanPublish()
}
func (p *ParticipantImpl) CanPublishSource(source livekit.TrackSource) bool {
return p.grants.Load().Video.GetCanPublishSource(source)
}