error in sample file audio_video_only.html

Report any bugs here, no matter how trivial

error in sample file audio_video_only.html

Postby Nepsundr » Tue Dec 04, 2012 5:06 pm

Which component is this for (JS API/AS3 API/iOS SDK/Server-side SDK)?
Javascript sample file

What steps will reproduce this problem?
From the web page
http://www.tokbox.com/opentok/api/tools ... aling.html
I downloaded "Download the source code." with the javascript tab selected
File audio_video_only.html Line 143 had to be modified to work.
"publisher = TB.initPublisher(apiKey, publisherDiv.id, publisherProperties);"
it had "" where I put apiKey.

What is the expected output?
Clicking on 'Connect' button did not respond

What do you see instead?
The javascript error console said something about the apiKey can not be null with the TB.initPublisher(

What OS and version are you seein this problem with?
Mac OS 10.7.5 (32-bit)

Which browser and version are you seeing this problem with?
Google Chrome

What Flash Player version are you seeing this problem with? (http://helpx.adobe.com/flash-player/kb/ ... layer.html)
11.5.31.2

What camera and microphone were you using?
iSight

What session ID (and archive ID if relevant) did you see this problem on? What token did you use? What date did you encounter this error?
1_MX4yMTkxMjg1Mn4xMjcuMC4wLjF-VHVlIERlYyAwNCAxNToyNjoxOSBQU1QgMjAxMn4wLjc5NzYzMTZ-

Does your computer pass the diagnostic tool? (http://www.tokbox.com/user-diagnostic/)
Yes, but "Port 443 should be open"

Have you tested this on other computers and browsers? If so, list them:
No.

Please give any additional info that can help solve this. It would be helpful if you could provide a session id or do command+shift+click (ctrl+shift+click) the tokbox logo on the top left of the publisher stream and give us a ticket id.
Was this post helpful? (0)
Nepsundr
 
Posts: 6
Joined: Tue Dec 04, 2012 4:49 pm
Thumbs Up: 0

Re: error in sample file audio_video_only.html

Postby Nepsundr » Tue Dec 04, 2012 5:44 pm

modSignaling.html and sizing.html seem to have the same thing. Also in a couple files I needed to do the same thing with the sessionId. I had assumed since you had those variables apiKey,sessionId and token that I wouldn't need to manually enter those values elsewhere in the code.
Was this post helpful? (0)
Nepsundr
 
Posts: 6
Joined: Tue Dec 04, 2012 4:49 pm
Thumbs Up: 0

Re: error in sample file audio_video_only.html

Postby ankur » Wed Dec 05, 2012 7:19 am

Hi,

Each of the sample files is meant to require you to place your API Key, Session ID, and Token inside the quotes. This is not a bug and the comments are there to help guide you in getting them set up. We're you able to connect once you replaced those values?

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

Re: error in sample file audio_video_only.html

Postby Nepsundr » Wed Dec 12, 2012 4:38 pm

Yes I was able to get it work. It's just that when you have constants at the top of the code named sessionId and token I assumed that that's the only place I needed to place those values
Was this post helpful? (0)
Nepsundr
 
Posts: 6
Joined: Tue Dec 04, 2012 4:49 pm
Thumbs Up: 0


Return to Bugs



Who is online

Users browsing this forum: No registered users and 1 guest

cron