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 is not working on proxy network #159

Closed
NaveenGB opened this issue Aug 8, 2017 · 7 comments
Closed

Twilio Video is not working on proxy network #159

NaveenGB opened this issue Aug 8, 2017 · 7 comments
Assignees
Labels

Comments

@NaveenGB
Copy link

NaveenGB commented Aug 8, 2017

Description

Twilio Video is not working on proxy network showing below logs, even I was not able install pods on proxy. Kindly let me know the URL's where all TwilioVideo is hitting so that I will remove proxy for those URL's

ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: socket error 32
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: TLS handshake failed
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: socket error 32
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: TLS handshake failed

@ceaglest ceaglest self-assigned this Aug 8, 2017
@ceaglest
Copy link
Contributor

ceaglest commented Aug 8, 2017

Hi @NaveenGB,

Twilio Video is not working proxy on proxy network showing below logs, even I was not able install pods on proxy. Kindly let me know the URL's where all TwilioVideo is hitting so that I will remove proxy for those URL's

We distribute our SDK via the CocoaPods Master Spec Repo which is hosted on Github. The Podfiles themselves link to binaries on our CDN. For example, our latest release is:

https://media.twiliocdn.com/sdk/ios/video/releases/1.3.0/twilio-video-ios-1.3.0.tar.bz2

ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: socket error 32
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: TLS handshake failed
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: socket error 32
ERROR:TwilioVideo:[Signaling]:RESIP::TRANSPORT: TLS handshake failed

As for the Client itself, at a minimum it needs to be able to establish a TLS connection with our signaling servers on port 443. Detailed information for signaling servers and Group Rooms media servers can be found here.

If you are using Peer-to-Peer Rooms then you will want to allow connectivity to our STUN / TURN servers as well.

This should get you up and running, but please let me know if you have any more questions.

Cheers,
Chris Eagleston

@NaveenGB
Copy link
Author

NaveenGB commented Aug 9, 2017 via email

@ceaglest
Copy link
Contributor

ceaglest commented Aug 10, 2017

Hi @NaveenGB,

On stack overflow you said:

let videoConstraints = TVIVideoConstraints { (constraints) in
constraints.maxSize = TVIVideoConstraintsSize960x540;
constraints.minSize = TVIVideoConstraintsSize960x540;
constraints.maxFrameRate = TVIVideoConstraintsFrameRateNone;
constraints.minFrameRate = TVIVideoConstraintsFrameRateNone;

camera = TVICameraCapturer(source: .frontCamera, delegate: self)
    localVideoTrack = TVILocalVideoTrack.init(capturer: camera!,
                                              enabled: true,
                                              constraints: videoConstraints)

"Error: Failed to create a video track using the local camera."
Video call is for iPhone SE, 6, 6s, 7 form factors

There is some punctuation missing (closing brace) in your code snippet. I'm assuming you based it on: https://www.twilio.com/docs/api/video/specifying-video-constraints

I don't see any issues in the sample code snippet, and this works for me locally.

Can you provide debug logs from your app?

Are these real iPhone devices or the simulator? The camera will not work on the simulator.

Does the camera capturer construction succeed or fail?

Best,
Chris Eagleston

@NaveenGB
Copy link
Author

Actually closing brace is there in my code I didn't add in the question. Our application is developed in both Mobile(iOS and Android) and Web(PHP) we have integrated twilio in both the platform, problem is when we connect room via mobile to mobile it is showing in full screen, but mobile to web it is showing small(vertically small), even in web to web is fine, web to mobile is small(horizontally small). Its not showing any error logs.

@NaveenGB
Copy link
Author

NaveenGB commented Aug 11, 2017 via email

@ceaglest
Copy link
Contributor

Hi @NaveenGB,

Can you provide detailed logs showing the failure? Video constraints (using the code snippet in our docs) should work just fine and I'm not aware of any bugs or regressions in this area.

Try adding:

TwilioVideo.setLogLevel(.debug)

At the start of your code which creates a capture / track. Without more info, I'm not sure how I can solve this issue as its not reproducible on my end. If you'd like I can post a branch with a modified version of the QS which uses constraints just to be sure we are on the same page.

Best,
Chris Eagleston

@ceaglest
Copy link
Contributor

ceaglest commented Feb 8, 2018

Closing this ticket since we didn't hear back from you. If you're still having issues please reopen with Debug logs of the failure.

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

2 participants