Skip to content

Commit b8696df

Browse files
committed
🌐 [Ci]: default 썸네일 이미지 디렉토리 변경
1 parent f742b79 commit b8696df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/media/src/sfu/sfu.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class SfuService {
3535
async createRoom(clientId: string, user: User) {
3636
const room = await this.roomService.createRoom();
3737

38+
console.log(`${room.id}'s default Thumbnail Setting....`);
3839
await this.recordClient.post('/thumbnail', { roomId: room.id });
3940

4041
const thumbnail = `${this.configService.get('PUBLIC_RECORD_SERVER_URL')}/statics/thumbnails/${room.id}.jpg`;

apps/record/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ WORKDIR /app
1010

1111
RUN mkdir -p /app/assets/records /app/assets/thumbnails && chmod -R 777 /app/assets
1212

13-
COPY ./apps/record/public/default-thumbnail.jpg /app/assets/default-thumbnail.jpg
14-
RUN chmod 644 /app/assets/default-thumbnail.jpg
13+
COPY ./apps/record/public/default-thumbnail.jpg /app/apps/record/assets/default-thumbnail.jpg
14+
RUN chmod 644 /app/apps/record/assets/default-thumbnail.jpg
1515

1616
# Environment variables
1717
ARG RECORD_PORT

apps/record/src/ffmpeg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const thumbnailArgs = (dirPath: string, roomId: string) => {
8989
'-vf',
9090
'fps=1/10,scale=1280:720', // 10초마다 한 프레임을 캡처하고 해상도 조정
9191
'-update',
92-
'1', // 같은 파일에 덮어쓰기 활성화
92+
'-y', // 같은 파일에 덮어쓰기 활성화
9393
`${dirPath}/thumbnails/${roomId}.jpg`, // 덮어쓸 출력 파일 이름
9494
];
9595
return commandArgs;

0 commit comments

Comments
 (0)