Some tests.
parent
a8149d29d8
commit
bf754d4797
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'>
|
||||||
|
<title>Multiparty Meeting</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type='text/javascript'>
|
||||||
|
window.opener.receiveFromChildWindow('Data from child window!');
|
||||||
|
|
||||||
|
window.close();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -323,6 +323,11 @@ export default class RoomClient
|
||||||
this._loginWindow.close();
|
this._loginWindow.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
receiveFromChildWindow(data)
|
||||||
|
{
|
||||||
|
logger.debug('receiveFromChildWindow() | [data:"%o"]', data);
|
||||||
|
}
|
||||||
|
|
||||||
_soundNotification()
|
_soundNotification()
|
||||||
{
|
{
|
||||||
const alertPromise = this._soundAlert.play();
|
const alertPromise = this._soundAlert.play();
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ const styles = (theme) =>
|
||||||
const JoinDialog = ({
|
const JoinDialog = ({
|
||||||
roomClient,
|
roomClient,
|
||||||
displayName,
|
displayName,
|
||||||
|
loginEnabled,
|
||||||
changeDisplayName,
|
changeDisplayName,
|
||||||
classes
|
classes
|
||||||
}) =>
|
}) =>
|
||||||
|
|
@ -119,16 +120,18 @@ const JoinDialog = ({
|
||||||
margin='normal'
|
margin='normal'
|
||||||
/>
|
/>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<Button
|
{ loginEnabled &&
|
||||||
onClick={() =>
|
<Button
|
||||||
{
|
onClick={() =>
|
||||||
roomClient.join({ joinVideo: false });
|
{
|
||||||
}}
|
roomClient.login();
|
||||||
variant='contained'
|
}}
|
||||||
color='secondary'
|
variant='contained'
|
||||||
>
|
color='secondary'
|
||||||
Sign in
|
>
|
||||||
</Button>
|
Sign in
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
<Button
|
<Button
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
{
|
{
|
||||||
|
|
@ -159,6 +162,7 @@ JoinDialog.propTypes =
|
||||||
{
|
{
|
||||||
roomClient : PropTypes.any.isRequired,
|
roomClient : PropTypes.any.isRequired,
|
||||||
displayName : PropTypes.string.isRequired,
|
displayName : PropTypes.string.isRequired,
|
||||||
|
loginEnabled : PropTypes.string.isRequired,
|
||||||
changeDisplayName : PropTypes.func.isRequired,
|
changeDisplayName : PropTypes.func.isRequired,
|
||||||
classes : PropTypes.object.isRequired
|
classes : PropTypes.object.isRequired
|
||||||
};
|
};
|
||||||
|
|
@ -166,7 +170,8 @@ JoinDialog.propTypes =
|
||||||
const mapStateToProps = (state) =>
|
const mapStateToProps = (state) =>
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
displayName : state.settings.displayName
|
displayName : state.settings.displayName,
|
||||||
|
loginEnabled : state.me.loginEnabled
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ async function setupAuth(oidcIssuer)
|
||||||
|
|
||||||
room.peerAuthenticated(state.peerId);
|
room.peerAuthenticated(state.peerId);
|
||||||
|
|
||||||
const socket = io.sockets.socket(state.id);
|
const socket = io.sockets.sockets[state.id];
|
||||||
|
|
||||||
if (socket)
|
if (socket)
|
||||||
{
|
{
|
||||||
|
|
@ -297,7 +297,7 @@ async function setupAuth(oidcIssuer)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
res.send('');
|
res.sendFile(`${__dirname}/public/authCallback.html`);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue