feat: video controller
This commit is contained in:
parent
bd5e03d184
commit
3a8b244f14
@ -146,7 +146,13 @@ public class Controller {
|
|||||||
System.out.println(participantName);
|
System.out.println(participantName);
|
||||||
|
|
||||||
AccessToken token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET);
|
AccessToken token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET);
|
||||||
token.setIdentity("학생"+participantName+randStr);
|
|
||||||
|
IdentityData identityData = new IdentityData(participantName, "강사");
|
||||||
|
String jsonIdentity = serializeIdentityData(identityData);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
token.setIdentity(jsonIdentity);
|
||||||
token.setName(participantName);
|
token.setName(participantName);
|
||||||
|
|
||||||
token.addGrants(new RoomJoin(true), new RoomName(roomName));
|
token.addGrants(new RoomJoin(true), new RoomName(roomName));
|
||||||
|
Loading…
Reference in New Issue
Block a user