feat: video 수정

This commit is contained in:
박정민 2024-08-02 11:18:19 +09:00
parent 8fdda0f6af
commit b798f04dfc

View File

@ -114,8 +114,8 @@ public class Controller {
String roomName = lecture.getTitle(); String roomName = lecture.getTitle();
String participantName = userService.getUserName(userId); String participantName = userService.getUserName(userId);
AccessToken token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET); AccessToken token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET);
token.setName(participantName+randStr); token.setName(participantName);
token.setIdentity(participantName+randStr); token.setIdentity("강사"+randStr);
token.addGrants(new RoomJoin(true), new RoomName(roomName), new RoomCreate(true)); token.addGrants(new RoomJoin(true), new RoomName(roomName), new RoomCreate(true));
videoSertvice.startOnline(userId, id); videoSertvice.startOnline(userId, id);
@ -133,8 +133,8 @@ 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.setName(participantName+randStr); token.setName(participantName);
token.setIdentity(participantName+randStr); token.setIdentity("학생"+participantName+randStr);
token.addGrants(new RoomJoin(true), new RoomName(roomName)); token.addGrants(new RoomJoin(true), new RoomName(roomName));