Skip to content

Commit

Permalink
Merge pull request #136 from SWM-FIRE/dev
Browse files Browse the repository at this point in the history
add diagram to readme
  • Loading branch information
071yoon authored Aug 17, 2022
2 parents c1171d9 + 8f288cd commit 12b7197
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@

## 아키텍쳐 ⚒

### Full Architecture

![full arch](https://user-images.githubusercontent.com/66371206/185145423-00937aee-eb35-46e7-85e0-a5aa5e372794.png)

### WebRTC Flow

![WebRTC Sequence Diagram](https://user-images.githubusercontent.com/66371206/185143244-142999a6-9f58-4e56-90ef-598782d7f420.png)

## 기술적 도전 🚀

### WebRTC
Expand Down
7 changes: 5 additions & 2 deletions src/hooks/useCreateMediaStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useCreateMediaStream = () => {
audio: {
autoGainControl: false,
channelCount: 2,
echoCancellation: false,
echoCancellation: true,
latency: 0,
noiseSuppression: false,
sampleRate: 48000,
Expand All @@ -82,7 +82,10 @@ export const useCreateMediaStream = () => {
const createDisplayStream = async () => {
try {
const videoStream = await navigator.mediaDevices.getDisplayMedia({
video: true,
video: {
width: { ideal: 1280, max: 1280 },
height: { ideal: 720, max: 720 },
},
});
videoStream.getVideoTracks().forEach((track) => {
myStream.localStream.addTrack(track);
Expand Down

1 comment on commit 12b7197

@vercel
Copy link

@vercel vercel bot commented on 12b7197 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.