Fix simulcast

This commit is contained in:
Håvar Aambø Fosstveit committed 2020-03-19 21:23:01 +01:00
1 parent 7a884edcdd
commit c424ffc17c
4 files changed
+146 -25

No files matched your search

+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;