Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twilio Video: Slow Connecting to Room around 3 seconds and up #897

Closed
9 tasks done
MarkTheiOSGuy opened this issue Feb 28, 2020 · 6 comments
Closed
9 tasks done

Twilio Video: Slow Connecting to Room around 3 seconds and up #897

MarkTheiOSGuy opened this issue Feb 28, 2020 · 6 comments
Assignees
Labels

Comments

@MarkTheiOSGuy
Copy link

MarkTheiOSGuy commented Feb 28, 2020

We are building a web app with reactjs. The web app receives a video call coming from a native Android App. On the Web, we are encountering issues with long wait when connecting to a room. The Room is a small group type and media region is also set to 'GLL'. It would be great if anyone could enlighten us with the issue.

Let me know if anything I could do to help.

  • I have verified that the issue occurs with the latest twilio-video.js release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I verified that the Quickstart application works in my environment.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Code to reproduce the issue:

import Video from 'twilio-video';

      var connectOptions = {
        name: roomName,
        logLevel: 'debug',
        region: 'gll'
      };

      if (thisComponent.state.previewTracks) {
        connectOptions.tracks = thisComponent.state.previewTracks;
      }

      // Join the Room with the token from the server and the
      // LocalParticipant's Tracks.
      Video.connect(response.data.token, connectOptions).then(function(room) {
        thisComponent.roomJoined(room, true);
      }, function (error) {
        console.log('Could not connect to Twilio: ' + error.message);
      });

Expected behavior:
Faster Room Connection Less than a second would do

Actual behavior:
Takes 3+ seconds to connect

Software versions:

  • Browser(s): Chrome, Firefox
  • Operating System: Windows 10, MacOS
  • twilio-video.js:v2.1.0
  • Third-party libraries (e.g., Angular, React, etc.): AWS AppSync, ReactJS
  • Internet Connection: On Wifi.
@makarandp0
Copy link
Contributor

Thank you for writing about this issue @MarkTheiOSGuy

About 3 seconds - although it does not seem very unreasonable - Are you measuring this as time taken for connect promise to resolve? Can you share some room-sids (and participant sids) that were taking particularly long to connect. I will look into which part of the connection is taking long, and if it's really outlier.

Thanks,
Makarand

@makarandp0
Copy link
Contributor

makarandp0 commented Feb 28, 2020

oh, and one more thing - can you please send logs from browser console for such participant as well. this would perhaps help us see which part of the connection is taking all that time.

@makarandp0 makarandp0 self-assigned this Mar 2, 2020
@MarkTheiOSGuy
Copy link
Author

MarkTheiOSGuy commented Mar 3, 2020 via email

@maheshgiri
Copy link

Hi mark, is your problem solved?

@MarkTheiOSGuy
Copy link
Author

MarkTheiOSGuy commented Mar 24, 2020 via email

@manjeshbhargav
Copy link
Collaborator

Hi @MarkTheiOSGuy , @maheshgiri ,

I know it's been a while, but are you still facing this issue with the latest SDK version (2.7.1)? Since we last chatted, we have made some improvements regarding the time to connect. I will close this issue, but we can continue the discussion here.

Thanks,

Manjesh Malavalli
JSDK Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants