Merge branch 'develop' into screensharing

This commit is contained in:
Håvar Aambø Fosstveit
2018-04-10 14:40:58 +02:00
6 changed files with 138 additions and 29 deletions
+10 -1
View File
@@ -2,7 +2,9 @@ const initialState =
{
url : null,
state : 'new', // new/connecting/connected/disconnected/closed,
activeSpeakerName : null
activeSpeakerName : null,
peerHeight : 300,
peerWidth : 400
};
const room = (state = initialState, action) =>
@@ -33,6 +35,13 @@ const room = (state = initialState, action) =>
return { ...state, activeSpeakerName: peerName };
}
case 'SET_COMPONENT_SIZE':
{
const { peerWidth, peerHeight } = action.payload;
return { ...state, peerWidth: peerWidth, peerHeight: peerHeight };
}
default:
return state;
}