Dirvann / mediasoup-sfu-webrtc-video-rooms

A simple video conferencing example using the mediasoup sfu
Apache License 2.0
222 stars 78 forks source link

consumer setPreferredLayers #25

Open jankin-l opened 2 years ago

jankin-l commented 2 years ago

Peer.js -> createConsumer

  if (consumer.type === 'simulcast') {
    await consumer.setPreferredLayers({
      spatialLayer: 2,
      temporalLayer: 2
    })
  }

why call 'setPreferredLayers' ? This is not done in the official demo

miroslavpejic85 commented 1 year ago

Ref: