Name | Type | Args | Return Type | Description |
---|---|---|---|---|
Device | Class <Constructor> | HTMLVideoElement, MediaStreamConstraints | ||
onToggleVideoAndAudio | Method | DeviceType, boolean | void | 방 입장전 장치설정에서 본인 장치를 on/off 할수있는 메서드 입니다. |
getDeviceEnumerate | Method | - | Promise<MediaDeviceInfo[] | undefined> |
attachStreamToLocalVideo | Method | MediaStreamConstraints (option) | Promise<void> | MediaStream을 본인의 video에 재생시킵니다. |
remoteAttachStreamToVideo | Method | HTMLVideoElement | void | 상대 video태그를 넘겨주면 video태그에 상대 MediaStream이 재생됩니다. |
onOffDeviceHandler | Method | DeviceType, boolean | Promise<void> | DeviceType을 선택한뒤 on/off상태를 받아 해당 장치가 on/ off 됩니다. |
onChangeDevice | Method | String, DeviceType | Promise<void> | 선택된 장치의 deviceId 와 DeviceType을 넘겨주면 장치가 변경됩니다. |
getStream | Method | - | MediaStream | 자신의 MediaStream이 반환됩니다. |
Name | Type | Args | Return Type | Description |
---|---|---|---|---|
User | Class <Constructor> | IUser | User | |
getUser | Method | - | UserInfo | 유저 정보를 반환 합니다. |
Name | Type | Args | Return Type | Description |
---|---|---|---|---|
Room | Class <Constructor> | Sring, User | Room | 사용자 닉네임과 유저 정보를 받습니다. |
joinRoom | Method | - | void | 유저 정보와 방 정보를 확인 한 뒤 방에 입장합니다. |
leaveRoom | Method | Device | void | 본인의 Device를 받아 나가기전 장치를 중지 시킵니다. |
getRemoteRoomJoinInfo | Method | - | RoomInfo[] | 현재 방에 입장한 유저 정보들을 반환합니다 |
Name | Type | Args | Return Type | Description |
---|---|---|---|---|
motionCreate | Static Class | HTMLCanvasElement, | ||
HTMLVideoElement, | ||||
CanvasStyles | Motion | Motion 인스턴스를 생성합니다. | ||
getInstanceOrNull | Static Method | - | Motion | null |
motionStart | Static Method | - | Promise<void> | 모션 감지를 시작합니다. |
motionStop | Static Method | - | void | 모션 감지를 중지합니다. |