Hidden participants (#65)

Enables hidden recording and/or forwarding participants
This commit is contained in:
David Colburn
2021-07-19 18:33:28 -05:00
committed by GitHub
parent 87dfb2b117
commit 4bab395ac9
14 changed files with 165 additions and 16 deletions
+5
View File
@@ -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).
+5
View File
@@ -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,
},
},
},
},