Fix simulcast

This commit is contained in:
Håvar Aambø Fosstveit
2020-03-19 21:23:01 +01:00
parent 7a884edcdd
commit c424ffc17c
4 changed files with 146 additions and 25 deletions
+9
View File
@@ -79,6 +79,15 @@ const consumers = (state = initialState, action) =>
return { ...state, [consumerId]: newConsumer };
}
case 'SET_CONSUMER_PRIORITY':
{
const { consumerId, priority } = action.payload;
const consumer = state[consumerId];
const newConsumer = { ...consumer, priority };
return { ...state, [consumerId]: newConsumer };
}
case 'SET_CONSUMER_TRACK':
{
const { consumerId, track } = action.payload;