Merge branch 'develop' into screensharing
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
```js
|
||||
{
|
||||
peerWidth : 200,
|
||||
peerHeight : 150,
|
||||
room :
|
||||
{
|
||||
url : 'https://example.io/?&roomId=d0el8y34',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,14 @@ export const setRoomActiveSpeaker = (peerName) =>
|
||||
};
|
||||
};
|
||||
|
||||
export const onComponentResize = (peerWidth, peerHeight) =>
|
||||
{
|
||||
return {
|
||||
type : 'SET_COMPONENT_SIZE',
|
||||
payload : { peerWidth, peerHeight }
|
||||
};
|
||||
};
|
||||
|
||||
export const setMe = ({ peerName, displayName, displayNameSet, device }) =>
|
||||
{
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user