fabriciocs / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

IE 7 - Unexpected call to method or property access (using YouTube API) #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. IE 7
2. Load the you tube chromeless player using swfobject.
3. The following code is used:

var myDevKey = '[MY KEY]';
var params = { allowScriptAccess: "always", wmode: "transparent" };
                var atts = { id: "myytplayer" };

swfobject.embedSWF("http://gdata.youtube.com/apiplayer?key=" + myDevKey +
"&enablejsapi=1&playerapiid=ytplayer", "ytapiplayer", "320", "240", "8",
null, null, params, atts);

What is the expected output? What do you see instead?
YouTube Chromeless player

What version of the product are you using? On what operating system?
swfobject 2.0, IE 7

Please provide any additional information below.
I get the following error: 

Line 397
Error: Unexpected call to method or property access.

Original issue reported on code.google.com by joelb...@gmail.com on 11 Apr 2008 at 7:53

GoogleCodeExporter commented 9 years ago
Don't gzip swfobject.  It produces errors in IE.  I pulled the reference out of 
my
compression utility and it works like a charm.

Original comment by joelb...@gmail.com on 11 Apr 2008 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by bobbyvandersluis on 12 Apr 2008 at 9:04

GoogleCodeExporter commented 9 years ago
the mobile networks tend to gzip everything... any thoughts?

Original comment by jam...@googlemail.com on 29 Apr 2008 at 12:12

GoogleCodeExporter commented 9 years ago
I've just resolved this issue.  Don't use the swfobject.js in the root folder 
of the
download - use the one in the "src" folder instead.  It's 13kb bigger, but 
actually
works which is a bonus.

Original comment by paulsu...@gmail.com on 21 Oct 2008 at 2:30

GoogleCodeExporter commented 9 years ago
Using the swfobject.js that's in the src folder didn't fix the issue for me. On 
to
test disabling gzip for IE

Original comment by thereald...@gmail.com on 29 Apr 2009 at 7:24

GoogleCodeExporter commented 9 years ago
Don't pack swfobject with asset_packager, or you will run into this error.

Original comment by jaysw...@gmail.com on 30 Apr 2009 at 6:35