diff --git a/app/src/components/Containers/Me.js b/app/src/components/Containers/Me.js
index f6fb173..733fbc8 100644
--- a/app/src/components/Containers/Me.js
+++ b/app/src/components/Containers/Me.js
@@ -286,9 +286,9 @@ const Me = (props) =>
defaultMessage : 'Start screen sharing'
});
}
- const [
- screenShareTooltipOpen,
- screenShareTooltipSetOpen
+ const [
+ screenShareTooltipOpen,
+ screenShareTooltipSetOpen
] = React.useState(false);
const screenShareTooltipHandleClose = () =>
@@ -365,7 +365,7 @@ const Me = (props) =>
}}
style={spacingStyle}
>
-
+
{ me.browser.platform !== 'mobile' && smallContainer &&
className={classes.smallContainer}
disabled={!me.canSendMic || me.audioInProgress}
color={
- micState === 'on' ?
- settings.voiceActivatedUnmute && !me.isAutoMuted ?
+ micState === 'on' ?
+ settings.voiceActivatedUnmute && !me.isAutoMuted ?
'primary'
: 'default'
: 'secondary'}
@@ -459,7 +459,7 @@ const Me = (props) =>
}}
>
{ micState === 'on' ?
-
@@ -477,9 +477,9 @@ const Me = (props) =>
})}
className={classes.fab}
disabled={!me.canSendMic || me.audioInProgress}
- color={micState === 'on' ?
+ color={micState === 'on' ?
settings.voiceActivatedUnmute && !me.isAutoMuted? 'primary'
- : 'default'
+ : 'default'
: 'secondary'}
size='large'
onClick={() =>
@@ -561,9 +561,9 @@ const Me = (props) =>
}
{ me.browser.platform !== 'mobile' &&
-
{ smallContainer ?
@@ -854,7 +854,7 @@ const Me = (props) =>
defaultMessage='ME'
/>
-
+
const mapStateToProps = (state) =>
{
let volume;
-
+
// noiseVolume under threshold
- if (state.peerVolumes[state.me.id] < state.settings.noiseThreshold)
+ if (state.peerVolumes[state.me.id] < state.settings.noiseThreshold)
{
// noiseVolume mapped to range 0.5 ... 1 (threshold switch)
- volume = 1 + ((Math.abs(state.peerVolumes[state.me.id] -
+ volume = 1 + ((Math.abs(state.peerVolumes[state.me.id] -
state.settings.noiseThreshold) / (-120 -
state.settings.noiseThreshold)));
- }
+ }
// noiseVolume over threshold: no noise but voice
else { volume = 0; }
@@ -933,7 +933,7 @@ export default withRoomContext(connect(
return (
prev.room === next.room &&
prev.me === next.me &&
- Math.round(prev.peerVolumes[prev.me.id]) ===
+ Math.round(prev.peerVolumes[prev.me.id]) ===
Math.round(next.peerVolumes[next.me.id]) &&
prev.peers === next.peers &&
prev.producers === next.producers &&
diff --git a/app/src/components/Containers/Peer.js b/app/src/components/Containers/Peer.js
index 9c2a6fa..c81627b 100644
--- a/app/src/components/Containers/Peer.js
+++ b/app/src/components/Containers/Peer.js
@@ -228,14 +228,14 @@ const Peer = (props) =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
setHover(true);
}}
onTouchEnd={() =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
touchTimeout = setTimeout(() =>
{
setHover(false);
@@ -445,14 +445,14 @@ const Peer = (props) =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
setHover(true);
}}
onTouchEnd={() =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
touchTimeout = setTimeout(() =>
{
setHover(false);
@@ -471,7 +471,7 @@ const Peer = (props) =>
}
-
+
setHover(true)}
@@ -480,14 +480,14 @@ const Peer = (props) =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
setHover(true);
}}
onTouchEnd={() =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
touchTimeout = setTimeout(() =>
{
setHover(false);
@@ -544,7 +544,7 @@ const Peer = (props) =>
}
}
-
+
}
-
+
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
setHover(true);
}}
onTouchEnd={() =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
touchTimeout = setTimeout(() =>
{
setHover(false);
@@ -663,7 +663,7 @@ const Peer = (props) =>
{
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
setHover(true);
}}
onTouchEnd={() =>
@@ -671,7 +671,7 @@ const Peer = (props) =>
if (touchTimeout)
clearTimeout(touchTimeout);
-
+
touchTimeout = setTimeout(() =>
{
setHover(false);
diff --git a/app/src/components/Controls/About.js b/app/src/components/Controls/About.js
index c462549..103df43 100644
--- a/app/src/components/Controls/About.js
+++ b/app/src/components/Controls/About.js
@@ -69,16 +69,16 @@ const About = ({
/>
-
+
Contributions to this work were made on behalf of the GÉANT
project, a project that has received funding from the
- European Union’s Horizon 2020 research and innovation
- programme under Grant Agreement No. 731122 (GN4-2).
+ European Union’s Horizon 2020 research and innovation
+ programme under Grant Agreement No. 731122 (GN4-2).
On behalf of GÉANT project, GÉANT Association is the sole
- owner of the copyright in all material which was developed
+ owner of the copyright in all material which was developed
by a member of the GÉANT project.
-
+
GÉANT Vereniging (Association) is registered with the
Chamber of Commerce in Amsterdam with registration number
40535155 and operates in the UK as a branch of GÉANT
@@ -106,7 +106,7 @@ const About = ({
/>
-
+
);
};
@@ -114,7 +114,7 @@ About.propTypes =
{
roomClient : PropTypes.object.isRequired,
aboutOpen : PropTypes.bool.isRequired,
- handleCloseAbout : PropTypes.func.isRequired,
+ handleCloseAbout : PropTypes.func.isRequired,
classes : PropTypes.object.isRequired
};
diff --git a/app/src/components/Controls/Help.js b/app/src/components/Controls/Help.js
index ab188b8..d789d10 100644
--- a/app/src/components/Controls/Help.js
+++ b/app/src/components/Controls/Help.js
@@ -107,13 +107,13 @@ const Help = ({
}
/>
-
+
- {shortcuts.map((value, index) =>
+ {shortcuts.map((value, index) =>
{
return (
-
+
{value.key}
-
+
);
};
@@ -142,7 +142,7 @@ Help.propTypes =
{
roomClient : PropTypes.object.isRequired,
helpOpen : PropTypes.bool.isRequired,
- handleCloseHelp : PropTypes.func.isRequired,
+ handleCloseHelp : PropTypes.func.isRequired,
classes : PropTypes.object.isRequired
};
diff --git a/app/src/components/JoinDialog.js b/app/src/components/JoinDialog.js
index 0ad8ef8..b2cf648 100644
--- a/app/src/components/JoinDialog.js
+++ b/app/src/components/JoinDialog.js
@@ -327,7 +327,7 @@ const JoinDialog = ({
/>
- :
+ :
{
title = title ? title : href;
text = text ? text : href;
-
+
return `${ text } `;
};
diff --git a/app/src/components/MeetingDrawer/Chat/MessageList.js b/app/src/components/MeetingDrawer/Chat/MessageList.js
index da6891b..d1c86d2 100644
--- a/app/src/components/MeetingDrawer/Chat/MessageList.js
+++ b/app/src/components/MeetingDrawer/Chat/MessageList.js
@@ -60,7 +60,7 @@ class MessageList extends React.Component
myPicture,
classes
} = this.props;
-
+
return (
{ this.node = node; }}>
{
diff --git a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js
index b11f631..d1d13e0 100644
--- a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js
+++ b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js
@@ -279,7 +279,7 @@ const ListPeer = (props) =>
}
- { isModerator && webcamConsumer &&
+ { isModerator && webcamConsumer &&
(availableSpeakerHeight - PADDING_V))
{
speakerHeight = (availableSpeakerHeight - PADDING_V);
@@ -167,7 +167,7 @@ class Filmstrip extends React.PureComponent
let filmStripHeight = availableFilmstripHeight - FILMSTRING_PADDING_V;
let filmStripWidth = filmStripHeight * RATIO;
-
+
if (
(filmStripWidth * this.props.boxes) >
(availableWidth - FILMSTRING_PADDING_H)
@@ -254,7 +254,7 @@ class Filmstrip extends React.PureComponent
};
return (
-
const permitted = roles.some((role) =>
roomPermissions[permission].includes(role)
);
-
+
if (permitted)
return true;
@@ -265,7 +265,7 @@ export const makePermissionSelector = (permission) =>
).length === 0
)
return true;
-
+
return false;
}
);
diff --git a/app/src/components/Settings/MediaSettings.js b/app/src/components/Settings/MediaSettings.js
index 2888d0f..9d48a42 100644
--- a/app/src/components/Settings/MediaSettings.js
+++ b/app/src/components/Settings/MediaSettings.js
@@ -18,7 +18,7 @@ import Typography from '@material-ui/core/Typography';
const NoiseSlider = withStyles(
{
- root :
+ root :
{
color : '#3880ff',
height : 2,
@@ -48,7 +48,7 @@ const styles = (theme) => ({
{
padding : theme.spacing(2)
},
- margin :
+ margin :
{
height : theme.spacing(3)
},
@@ -72,7 +72,7 @@ const MediaSettings = ({
}) =>
{
const intl = useIntl();
-
+
const resolutions = [ {
value : 'low',
label : intl.formatMessage({
@@ -122,7 +122,7 @@ const MediaSettings = ({
audioDevices = Object.values(me.audioDevices);
else
audioDevices = [];
-
+
let audioOutputDevices;
if (me.audioOutputDevices)
@@ -174,7 +174,7 @@ const MediaSettings = ({
+ onChange={(event) =>
{
if (event.target.value)
roomClient.changeVideoResolution(event.target.value);
@@ -183,7 +183,7 @@ const MediaSettings = ({
autoWidth
className={classes.selectEmpty}
>
- {resolutions.map((resolution, index) =>
+ {resolutions.map((resolution, index) =>
{
return (
@@ -293,7 +293,7 @@ const MediaSettings = ({
className={classes.setting}
control={
+ (event) =>
{
setShowAdvancedAudio(event.target.checked);
}}
@@ -310,7 +310,7 @@ const MediaSettings = ({
className={classes.setting}
control={
+ (event) =>
{
setEchoCancellation(event.target.checked);
roomClient.changeAudioDevice(settings.selectedAudioDevice);
@@ -325,7 +325,7 @@ const MediaSettings = ({
className={classes.setting}
control={
+ (event) =>
{
setAutoGainControl(event.target.checked);
roomClient.changeAudioDevice(settings.selectedAudioDevice);
@@ -340,7 +340,7 @@ const MediaSettings = ({
className={classes.setting}
control={
+ (event) =>
{
setNoiseSuppression(event.target.checked);
roomClient.changeAudioDevice(settings.selectedAudioDevice);
@@ -355,7 +355,7 @@ const MediaSettings = ({
className={classes.setting}
control={
+ (event) =>
{
setVoiceActivatedUnmute(event.target.checked);
}}
@@ -374,18 +374,18 @@ const MediaSettings = ({
})
}
-
{
roomClient._setNoiseThreshold(value);
}}
- marks={[ { value: volume, label: 'level' } ]}
+ marks={[ { value: volume, label: 'level' } ]}
/>
diff --git a/app/src/components/VideoContainers/VideoView.js b/app/src/components/VideoContainers/VideoView.js
index 0b01a22..4e7ad76 100644
--- a/app/src/components/VideoContainers/VideoView.js
+++ b/app/src/components/VideoContainers/VideoView.js
@@ -187,50 +187,50 @@ class VideoView extends React.PureComponent
if (videoScore || audioScore)
{
const score = videoScore ? videoScore : audioScore;
-
+
switch (isMe ? score.score : score.producerScore)
{
case 0:
case 1:
{
quality = ;
-
+
break;
}
-
+
case 2:
case 3:
{
quality = ;
-
+
break;
}
-
+
case 4:
case 5:
case 6:
{
quality = ;
-
+
break;
}
-
+
case 7:
case 8:
case 9:
{
quality = ;
-
+
break;
}
-
+
case 10:
{
quality = null;
-
+
break;
}
-
+
default:
{
break;
@@ -266,7 +266,7 @@ class VideoView extends React.PureComponent
{ showQuality &&
- {
+ {
quality
}
diff --git a/app/src/index.js b/app/src/index.js
index e21de44..97f9b25 100644
--- a/app/src/index.js
+++ b/app/src/index.js
@@ -135,20 +135,20 @@ function run()
if (!basePath)
basePath = '/';
-
+
// Get current device.
const device = deviceInfo();
let unsupportedBrowser=false;
let webrtcUnavailable=false;
-
+
if (detectDevice() === undefined)
{
- logger.error('Unsupported browser detected by mediasoup client detectDevice! deviceInfo: %o', device);
+ logger.error('Unsupported browser detected by mediasoup client detectDevice! deviceInfo: %o', device);
unsupportedBrowser=true;
}
- else
+ else
if (
navigator.mediaDevices === undefined ||
navigator.mediaDevices.getUserMedia === undefined ||
@@ -157,13 +157,13 @@ function run()
{
logger.error('WebRTC is unavialable in your browser! deviceInfo: %o', device);
webrtcUnavailable=true;
- }
- else
+ }
+ else
if (device.name === 'safari' && !isNaN(device.version) && parseFloat(device.version) < 12)
{
unsupportedBrowser=true;
}
- else
+ else
{
logger.debug('Supported Browser! deviceInfo: %o', device);
}
@@ -173,15 +173,15 @@ function run()
render(
-
,
document.getElementById('multiparty-meeting')
);
-
+
return;
}
diff --git a/app/src/reducers/lobbyPeers.js b/app/src/reducers/lobbyPeers.js
index 4cf9cc1..2e18ce0 100644
--- a/app/src/reducers/lobbyPeers.js
+++ b/app/src/reducers/lobbyPeers.js
@@ -1,6 +1,6 @@
const lobbyPeer = (state = {}, action) =>
{
- switch (action.type)
+ switch (action.type)
{
case 'ADD_LOBBY_PEER':
return { id: action.payload.peerId };
@@ -42,7 +42,7 @@ const lobbyPeers = (state = {}, action) =>
{
const oldLobbyPeer = state[action.payload.peerId];
- if (!oldLobbyPeer)
+ if (!oldLobbyPeer)
{
// Tried to update non-existent lobbyPeer. Has probably been promoted, or left.
return state;
diff --git a/app/src/reducers/peers.js b/app/src/reducers/peers.js
index 8e6a7f7..b45d469 100644
--- a/app/src/reducers/peers.js
+++ b/app/src/reducers/peers.js
@@ -2,7 +2,7 @@ const initialState = {};
const peer = (state = initialState, action) =>
{
- switch (action.type)
+ switch (action.type)
{
case 'ADD_PEER':
return action.payload.peer;
@@ -21,7 +21,7 @@ const peer = (state = initialState, action) =>
case 'SET_PEER_KICK_IN_PROGRESS':
return { ...state, peerKickInProgress: action.payload.flag };
-
+
case 'SET_PEER_RAISED_HAND':
return {
...state,
@@ -34,7 +34,7 @@ const peer = (state = initialState, action) =>
...state,
raisedHandInProgress : action.payload.flag
};
-
+
case 'ADD_CONSUMER':
{
const consumers = [ ...state.consumers, action.payload.consumer.id ];
@@ -127,14 +127,14 @@ const peers = (state = initialState, action) =>
{
const oldPeer = state[action.payload.peerId];
- if (!oldPeer)
+ if (!oldPeer)
{
throw new Error('no Peer found');
}
return { ...state, [oldPeer.id]: peer(oldPeer, action) };
}
-
+
case 'SET_PEER_KICK_IN_PROGRESS':
case 'REMOVE_CONSUMER':
{
diff --git a/app/src/reducers/room.js b/app/src/reducers/room.js
index 193e8e0..d03194b 100644
--- a/app/src/reducers/room.js
+++ b/app/src/reducers/room.js
@@ -10,7 +10,7 @@ const initialState =
// access code to the room if locked and joinByAccessCode == true
accessCode : '',
// if true: accessCode is a possibility to open the room
- joinByAccessCode : true,
+ joinByAccessCode : true,
activeSpeakerId : null,
torrentSupport : false,
showSettings : false,
@@ -107,7 +107,7 @@ const room = (state = initialState, action) =>
return { ...state, lockDialogOpen };
}
-
+
case 'SET_SETTINGS_OPEN':
{
const { settingsOpen } = action.payload;
@@ -135,7 +135,7 @@ const room = (state = initialState, action) =>
return { ...state, aboutOpen };
}
-
+
case 'SET_SETTINGS_TAB':
{
const { tab } = action.payload;