The bad news: When switching the script source back to https://swww.tokbox.com/v1.1/js/TB.min.js, and reloading the page, no flash is getting injected into the video div element. Browser caches all cleared, server cache was also purged as a sanity check. The code worked fine before switching to WebRTC. NO code changes were made aside from switching the source TB.min scripts back and forth. I'm not even trying to do a browser sniffer yet - just trying out WebRTC by hard coding the script. I would expect this to NOT be a cacheing issue even on opentok's end, since I assume that the flash version is handled by a flash server of some kind and the WebRTC is handled by a separate STUN server. Nevertheless, the flash is not getting injected for some reason, and I'm not seeing any flash objects coming in my network traffic.
Which component is this for (JS API/AS3 API/iOS SDK/Server-side SDK)?
JS API
What steps will reproduce this problem?
1. Switch script to web rtc
2. Load a video chat successfully
3. Switch back to flash version of chat (NOT P2P)
What is the expected output?
Switching back should work, since no code changes are made
What do you see instead?
Flash objects are not getting injected into the publisher or subscriber HTML elements.
Checking the net traffic, there is no response body on the following GET (I don't know if this is the root cause tho):
https://swww.tokbox.com/v1.1.2/flash/f_controllerwidget.swf?partnerId=7234032
Here are the headers for the above URL:
- Code: Select all
Response Headersview source
Connection keep-alive
Content-Length 691
Content-Type application/xml
Date Tue, 29 Jan 2013 19:07:29 GMT
Server nginx
X-TB-HOST fms401-oak.tokbox.com
Request Headersview source
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Connection keep-alive
Host anvil.opentok.com
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0 FirePHP/0.7.1
x-insight activate
Request Headers From Upload Stream
Content-length 7
Content-type application/x-www-form-urlencoded
X-TB-CONNECTIONID 22ad5b7244fb9a4ca4ab5c527ba041f044e6d55a
X-TB-TOKEN-AUTH T1==cGFydG5lcl9pZD03MjM0MDMyJnNka192ZXJzaW9uPXRicGhwLXYwLjkxLjIwMTEtMTAtMTImc2lnPTMyOGVhOTM5ZDcwNzQ4ZmFlMGIxZjg3OTFjZmQ2N2IxZmFiMzAzNjA6c2Vzc2lvbl9pZD0yX01YNDNNak0wTURNeWZqRXlOeTR3TGpBdU1YNVhaV1FnVG05MklERTBJREUyT2pRNE9qTTBJRkJUVkNBeU1ERXlmakF1T0RJNE1ETTFOWDQmY3JlYXRlX3RpbWU9MTM1OTQ4NjI5NSZyb2xlPXB1Ymxpc2hlciZub25jZT0xMzU5NDg2Mjk1LjIxNDM0MjU4MjUzOSZjb25uZWN0aW9uX2RhdGE9dGVuaGFuZHN0ZXN0MQ==
X-TB-WIDGETID 28286CA2ABEF669A18E3BD134D3CF448
What OS and version are you seein this problem with?
MacOS, have not tested on others
Which browser and version are you seeing this problem with?
Chrome and Firefox
What Flash Player version are you seeing this problem with? (http://helpx.adobe.com/flash-player/kb/ ... layer.html)
11.5.502.146
What camera and microphone were you using? N/A
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?
sessionId: '2_MX43MjM0MDMyfjEyNy4wLjAuMX5XZWQgTm92IDE0IDE2OjQ4OjM0IFBTVCAyMDEyfjAuODI4MDM1NX4',
NOTE: WebRTC is working fine, no flash object is getting injected when switching back to https://swww.tokbox.com/v1.1/js/TB.min.js
Does your computer pass the diagnostic tool? (http://www.tokbox.com/user-diagnostic/)
YES
Have you tested this on other computers and browsers? If so, list them:
NO, only as mentioned above
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.
From
https://anvil.opentok.com/session/2_MX4 ... ended=True
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><sessions><Session><session_id>2_MX43MjM0MDMyfjEyNy4wLjAuMX5XZWQgTm92IDE0IDE2OjQ4OjM0IFBTVCAyMDEyfjAuODI4MDM1NX4</session_id><partner_id>7234032</partner_id><create_dt>Wed Nov 14 16:48:34 PST 2012</create_dt><session_status>INFLIGHT</session_status><media_server_url>rtmp://fms401-oak.tokbox.com/opentok/2_MX43MjM0MDMyfjEyNy4wLjAuMX5XZWQgTm92IDE0IDE2OjQ4OjM0IFBTVCAyMDEyfjAuODI4MDM1NX4</media_server_url><p2p_server_url>rtmfp://p2p105-lax.tokbox.com:1945/multicast</p2p_server_url><media_server_hostname>fms401-oak.tokbox.com</media_server_hostname><messaging_server_url>fms401-oak.tokbox.com</messaging_server_url></Session></sessions>
From https://anvil.opentok.com/token/validate
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><tokens><token><session_id>2_MX43MjM0MDMyfjEyNy4wLjAuMX5XZWQgTm92IDE0IDE2OjQ4OjM0IFBTVCAyMDEyfjAuODI4MDM1NX4</session_id><partner_id>7234032</partner_id><create_time>1359486295</create_time><sdk_version>tbphp-v0.91.2011-10-12</sdk_version><role>publisher</role><connection_data>tenhandstest1</connection_data><permissions><publish/><subscribe/><signal/></permissions></token></tokens>