first working layout for democratic view

This commit is contained in:
Stefan Otto
2018-03-22 13:30:19 +01:00
parent 886d77216a
commit 341dee4f9d
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;
}