Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion observability/roomobs/gen_reporter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions observability/roomobs/room.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,20 @@ func TrackSourceFromProto(p livekit.TrackSource) TrackSource {

type RoomFeature uint16

func (f RoomFeature) HasIngress() bool { return f&IngressRoomFeature != 0 }
func (f RoomFeature) HasEgress() bool { return f&EgressRoomFeature != 0 }
func (f RoomFeature) HasSIP() bool { return f&SIPRoomFeature != 0 }
func (f RoomFeature) HasAgent() bool { return f&AgentRoomFeature != 0 }
func (f RoomFeature) HasConnector() bool { return f&ConnectorRoomFeature != 0 }
func (f RoomFeature) HasIngress() bool { return f&IngressRoomFeature != 0 }
func (f RoomFeature) HasEgress() bool { return f&EgressRoomFeature != 0 }
func (f RoomFeature) HasSIP() bool { return f&SIPRoomFeature != 0 }
func (f RoomFeature) HasAgent() bool { return f&AgentRoomFeature != 0 }
func (f RoomFeature) HasConnector() bool { return f&ConnectorRoomFeature != 0 }
func (f RoomFeature) HasSimulation() bool { return f&SimulationRoomFeature != 0 }

const (
IngressRoomFeature RoomFeature = 1 << iota
EgressRoomFeature
SIPRoomFeature
AgentRoomFeature
ConnectorRoomFeature
SimulationRoomFeature
)

func RoomFeatureFromParticipantKind(k livekit.ParticipantInfo_Kind) RoomFeature {
Expand Down
Loading