Skip to content

Commit

Permalink
Hidden participants (#4)
Browse files Browse the repository at this point in the history
* add hidden field

* add hidden to participant info

* add comment

* move hidden
  • Loading branch information
frostbyte73 authored Jul 19, 2021
1 parent ccbb4ab commit 71fedf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ type VideoGrant struct {
// it's interpreted as both are permissible
CanPublish bool `json:"canPublish,omitempty"`
CanSubscribe bool `json:"canSubscribe,omitempty"`

// used for recording
Hidden bool `json:"hidden,omitempty"`
}

type ClaimGrants struct {
Expand Down
2 changes: 2 additions & 0 deletions livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ message ParticipantInfo {
string metadata = 5;
// timestamp when participant joined room
int64 joined_at = 6;
// hidden participant (used for recording)
bool hidden = 7;
}

enum TrackType {
Expand Down

0 comments on commit 71fedf0

Please sign in to comment.