mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 07:39:09 +00:00
Hidden participants (#65)
Enables hidden recording and/or forwarding participants
This commit is contained in:
@@ -103,6 +103,11 @@ func createToken(c *cli.Context) error {
|
||||
RoomJoin: true,
|
||||
Room: room,
|
||||
}
|
||||
if c.Bool("recorder") {
|
||||
grant.Hidden = true
|
||||
grant.CanSubscribe = true
|
||||
}
|
||||
|
||||
at := auth.NewAccessToken(apiKey, apiSecret).
|
||||
AddGrant(grant).
|
||||
SetIdentity(identity).
|
||||
|
||||
@@ -118,6 +118,11 @@ func main() {
|
||||
Usage: "identity of participant that holds the token",
|
||||
Required: true,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "recorder",
|
||||
Usage: "creates a hidden participant that can only subscribe",
|
||||
Required: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user