Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import HuddleContainer from '@/src/features/video/ui/HuddleContainer';

//허들 테스트를 위한 임시페이지(삭제예정)
const HuddleTest = () => {
return <HuddleContainer />;
};
Expand Down
21 changes: 21 additions & 0 deletions src/frontend/apps/web/src/features/video/model/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export const STOMP_SERVER_URL = process.env.NEXT_PUBLIC_STOMP_SERVER;

export const RTC_CONFIGURATION = {
iceServers: [
{ urls: process.env.NEXT_PUBLIC_STUN_SERVER },
{
urls: process.env.NEXT_PUBLIC_TRUN_SERVER,
username: process.env.NEXT_PUBLIC_TURN_USERNAME,
credential: process.env.NEXT_PUBLIC_TURN_CREDENTIAL,
},
],
iceTransportPolicy: 'all',
bundlePolicy: 'max-bundle',
iceCandidatePoolSize: 0,
} as RTCConfiguration;

export const STOMP_PATH = {
PUB_URL: process.env.NEXT_PUBLIC_PUB_URL,
SUB_URL: process.env.NEXT_PUBLIC_SUB_URL,
PRIVATE_SUB_URL: process.env.NEXT_PUBLIC_PRIVATE_SUB_URL,
};
18 changes: 18 additions & 0 deletions src/frontend/apps/web/src/features/video/model/huddle.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { RefObject } from 'react';

export type HuddleProps = {
userId: number;
setUserId: (value: number) => void;

channelId: number;
setChannelId: (value: number) => void;

isSetupConfirmed: boolean;
setIsSetupConfirmed: (value: boolean) => void;

joinRoom: () => void;
leaveRoom: () => void;

localVideoRef: RefObject<HTMLVideoElement>;
videoRefs: RefObject<{ [key: string]: HTMLVideoElement | null }>;
};
Loading