Skip to content
Snippets Groups Projects
Commit 4a761f92 authored by Ramon Souza's avatar Ramon Souza
Browse files

adding comment about canConnect

parent 5fe5705a
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,12 @@ export default withLayoutConsumer(withModalMounter(withTracker(() => {
let deviceIds = Session.get('deviceIds');
if (!userIsInBreakout && userWasInBreakout && deviceIds && deviceIds !== '') {
/* used when re-sharing cameras after leaving a breakout room.
it is needed in cases where the user has more than one active camera
so we only share the second camera after the first
has finished loading (can't share more than one at the same time) */
const canConnect = Session.get('canConnect');
deviceIds = deviceIds.split(',');
if (canConnect) {
......
......@@ -122,6 +122,11 @@ class VideoListItem extends Component {
const { videoIsReady } = this.state;
if (!videoIsReady) this.setState({ videoIsReady: true });
window.dispatchEvent(new Event('resize'));
/* used when re-sharing cameras after leaving a breakout room.
it is needed in cases where the user has more than one active camera
so we only share the second camera after the first
has finished loading (can't share more than one at the same time) */
Session.set('canConnect', true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment