Add FastPublish in JoinResponse (#2964)
Set FastPublish in JoinResponse for participant can publish and no ice fallback setting.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user