diff --git a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java index d11f2b4..363f9f1 100644 --- a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java +++ b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java @@ -146,7 +146,13 @@ public class Controller { System.out.println(participantName); 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.addGrants(new RoomJoin(true), new RoomName(roomName));