Skip to content

Commit

Permalink
fix: 네트워크 상태에 따라 해상도만 변경하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seoko97 committed Dec 5, 2024
1 parent 81a43aa commit 25e22e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/media/src/mediasoup/mediasoup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ export class MediasoupService implements OnModuleInit {

const consumer = peer.getConsumer(consumerId);

consumer?.setPreferredLayers({
spatialLayer: networkQuality,
temporalLayer: networkQuality,
});
if (!consumer || consumer.closed || consumer.paused) return;

consumer?.setPreferredLayers({ spatialLayer: networkQuality });
});
}

Expand Down

0 comments on commit 25e22e7

Please sign in to comment.