Skip to content

Commit fa445e5

Browse files
allow metadata to be passed for joining participant (#608)
Co-authored-by: Terran Vigil <[email protected]>
1 parent d1e8024 commit fa445e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/lk/room.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ var (
190190
Usage: "Automatically subscribe to published tracks.",
191191
Value: false,
192192
},
193+
&cli.StringFlag{
194+
Name: "metadata",
195+
Usage: "`JSON` metadata which will be passed to participant",
196+
},
193197
},
194198
},
195199
{
@@ -967,6 +971,7 @@ func joinRoom(ctx context.Context, cmd *cli.Command) error {
967971
RoomName: roomName,
968972
ParticipantIdentity: participantIdentity,
969973
ParticipantAttributes: participantAttributes,
974+
ParticipantMetadata: cmd.String("metadata"),
970975
}, roomCB, lksdk.WithAutoSubscribe(autoSubscribe))
971976
if err != nil {
972977
return err

0 commit comments

Comments
 (0)