diff --git a/apps/media/src/mediasoup/mediasoup.service.ts b/apps/media/src/mediasoup/mediasoup.service.ts index b80a67f9..6770fc49 100644 --- a/apps/media/src/mediasoup/mediasoup.service.ts +++ b/apps/media/src/mediasoup/mediasoup.service.ts @@ -313,7 +313,7 @@ export class MediasoupService implements OnModuleInit { if (!consumer || consumer.closed || consumer.paused) return; - consumer?.setPreferredLayers({ spatialLayer: networkQuality }); + consumer.setPreferredLayers({ spatialLayer: networkQuality }); }); }