feat: video controller

This commit is contained in:
박정민 2024-08-02 13:50:35 +09:00
parent bd5e03d184
commit 3a8b244f14

View File

@ -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));