Issue with Titanium Sample App on GitHub

Ask questions about the iOS API here

Issue with Titanium Sample App on GitHub

Postby bradenpowers » Wed Sep 19, 2012 10:45 am

I have created the app and I have gotten it to build. When I start the app, it says connecting and sits there and spins. I have all of my keys in the config.js file and I know that they are correct because I can view a stream of my self in the browser. Any ideas?
Was this post helpful? (0)
bradenpowers
 
Posts: 4
Joined: Wed Sep 19, 2012 10:43 am
Thumbs Up: 0

Re: Issue with Titanium Sample App on GitHub

Postby ankur » Wed Sep 19, 2012 11:24 am

Hello,

Which Titanium SDK version are you building with? Which iOS SDK version are you targeting? Is this happening when you run in the simulator, when you run on the device, or both? What device are you testing on?

When you say that you can view a stream in the browser, do you mean a stream thats being published from the device's camera? Or just that you used those same sessionId and token values in another page and it was able to publish?

Thanks,

Ankur Oberoi
Was this post helpful? (0)
ankur
 
Posts: 315
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issue with Titanium Sample App on GitHub

Postby bradenpowers » Wed Sep 19, 2012 12:16 pm

Ti SDK is 2.1.0
iOS SDK 5.1

This is is on the device. I am trying to see a stream from the device's camera. When I start the app the connection sprite just keeps spinning.
Was this post helpful? (0)
bradenpowers
 
Posts: 4
Joined: Wed Sep 19, 2012 10:43 am
Thumbs Up: 0

Re: Issue with Titanium Sample App on GitHub

Postby ankur » Wed Sep 19, 2012 12:57 pm

I'm still a little unclear about what you mentioned in your first email. You said you knew the sessionId and token (from config.js) were right because you could view your stream in the the browser. Is that stream coming from the camera on the device?

Can you show me the output of the logs coming from the device? This can be done by first forcing the App to close on your device, plugging it into your Mac with Xcode running, opening Organizer to the Devices tab, and selecting the Console item under your device on the left. Hit the clear button on the bottom left, and then launch the App. You should get a bunch of output there and if you can copy and paste that to me I can dig into whats going on.

-- Ankur
Was this post helpful? (0)
ankur
 
Posts: 315
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issue with Titanium Sample App on GitHub

Postby bradenpowers » Wed Sep 19, 2012 1:10 pm

What I am trying to do is stream video from my iPhone to a web page to do a proof of concept for a client. I am trying to show the client can stream video from their iPhone to a webpage. The webpage can access the camera on my laptop and show a video. However when I fire up the helloWorld titanium project, I get a connecting sprite just spinning. I just changed the Ti.API.info to an alert on the sessionFailedHandler and the error that I am getting is "No messaging server available for this session".
Was this post helpful? (0)
bradenpowers
 
Posts: 4
Joined: Wed Sep 19, 2012 10:43 am
Thumbs Up: 0

Re: Issue with Titanium Sample App on GitHub

Postby ankur » Wed Sep 19, 2012 1:47 pm

Okay I understand now. It sounded like you meant the device was streaming video without the connecting spinner going away, which would have been really bizarre.

I was just able to reproduce this problem and it seemed like the error message being delivered is not accurate. I solved it by generating a new token because the actual error was that the token was expired.

Can you try generating a new token and seeing if that fixes the issue? If not, please send me your sessionId and a token with a long expiration time to my personal email address: ankur@tokbox.com. I'll try to see what is happening.

-- Ankur
Was this post helpful? (0)
ankur
 
Posts: 315
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issue with Titanium Sample App on GitHub

Postby bradenpowers » Thu Sep 20, 2012 11:33 am

That was it. It is working now. Thanks!
Was this post helpful? (0)
bradenpowers
 
Posts: 4
Joined: Wed Sep 19, 2012 10:43 am
Thumbs Up: 0

Re: Issue with Titanium Sample App on GitHub

Postby irwinnardo » Thu Jan 10, 2013 4:34 pm

I am having the same issue trying to get the HelloWorld sample running. I am stuck at the Connecting screen. I created a new apiKey and new token but still not working. No error messages.
Was this post helpful? (0)
irwinnardo
 
Posts: 2
Joined: Wed Jan 09, 2013 6:08 pm
Thumbs Up: 0

Re: Issue with Titanium Sample App on GitHub

Postby irwinnardo » Thu Jan 10, 2013 4:35 pm

I am running Titanium SDK: 3.0.0.GA
IOS SDK: 6.0
module version: 0.2.2-alpha
Was this post helpful? (0)
irwinnardo
 
Posts: 2
Joined: Wed Jan 09, 2013 6:08 pm
Thumbs Up: 0


Return to iOS



Who is online

Users browsing this forum: No registered users and 1 guest