The new WebRTC repo doesn't works with the HelloWorld

Ask questions about the iOS API here

The new WebRTC repo doesn't works with the HelloWorld

Postby pablux » Fri Nov 16, 2012 11:40 am

Hey there,

I noticed that a couple of days ago you separated the webrtc branch into his own repo: https://github.com/opentok/opentok-ios-sdk-webrtc

Thing is that before that change the demo worked without problems. Of course, now the step #2 from the instructions is invalid:
In the opentok-ios-sdk subdirectory of the project, run git pull webrtc


Instead I just delete Opentok.framework and opentok.bundle and replace them with the ones from the webrtc branch.

But I can't seem to be able to connect any session now, I keep getting falling into session:didFailWithError: like if my session was invalid. I've tried creating several ones, of course with peer to peer enabled and the token as a publisher.

Any hints?
Was this post helpful? (0)
pablux
 
Posts: 5
Joined: Fri Nov 16, 2012 11:29 am
Thumbs Up: 0

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby don » Fri Nov 16, 2012 1:01 pm

Have a look at the error.localizedDescription and error.code for more info and let me know if you still have issues
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby pablux » Fri Nov 16, 2012 2:09 pm

po error prints:

(OTError *) $0 = 0x00d9d6f0 Error Domain=OTSessionErrorDomain Code=2 "The session failed to connect."


So you're positive that the demo is working out of the box?
Was this post helpful? (0)
pablux
 
Posts: 5
Joined: Fri Nov 16, 2012 11:29 am
Thumbs Up: 0

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby don » Fri Nov 16, 2012 2:21 pm

Sounds like you may have a firewall issue. We only throw that error (code=2) when there was a network connectivity or timeout problem.

Make sure you have port 5560 open.

You can test this by running the following in terminal:

Code: Select all
telnet oms405-oak.tokbox.com 5560
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby pablux » Fri Nov 16, 2012 2:29 pm

It's open, I can access by telnet. Yet the session always fails.

I can successfully run an example use the javascript webrtc api with the same api_key, session and token. It's just the iOS one that won't connect.
Was this post helpful? (0)
pablux
 
Posts: 5
Joined: Fri Nov 16, 2012 11:29 am
Thumbs Up: 0

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby don » Fri Nov 16, 2012 2:33 pm

Our JavaScript API doesn't use the same ports to connect to our servers. Please make sure 5560 is available..
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby pablux » Fri Nov 16, 2012 2:41 pm

Yup, it's available. I used telnet to confirm connecting to 5560.
Was this post helpful? (0)
pablux
 
Posts: 5
Joined: Fri Nov 16, 2012 11:29 am
Thumbs Up: 0

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby don » Fri Nov 16, 2012 2:45 pm

Can you try from another network connection?

What's your SessionId?
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby pablux » Fri Nov 16, 2012 3:20 pm

I've just did a reset of the iPad and it's working now. I don't know what was the problem though, it was connected to the same network than the dev mac.

Thanks!
Was this post helpful? (0)
pablux
 
Posts: 5
Joined: Fri Nov 16, 2012 11:29 am
Thumbs Up: 0

Re: The new WebRTC repo doesn't works with the HelloWorld

Postby don » Fri Nov 16, 2012 4:35 pm

Ah the ol Windows fix. Glad you're up and running. Happy video chatting!
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10


Return to iOS (Native)



Who is online

Users browsing this forum: No registered users and 1 guest

cron