Always give audio the priority if there is bandwidth problems
parent
76adbf1d69
commit
1e1f714db5
|
|
@ -1266,6 +1266,9 @@ class Room extends EventEmitter
|
|||
rtpCapabilities : consumerPeer.rtpCapabilities,
|
||||
paused : producer.kind === 'video'
|
||||
});
|
||||
|
||||
if (producer.kind === 'audio')
|
||||
await consumer.setPriority(255);
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue