Enable Youtube Api On Existing Player
Solution 1:
Regarding swfobject - yes. IE treats flash embeds slightly differently (thanks activex) than all the other browsers. check out this article to get an idea of why, and the SWFObject documentation for more information.
Also, I recently created a jQuery plugin to help control the embedded player using the player API (basically what you're doing).
Check it out, it's the jQuery TubePlayer plugin - http://www.tikku.com/jquery-youtube-tubeplayer-plugin
Solution 2:
IE isn't finding $('object')
maybe because you need to specify the right type ( do an alert on the obj length ), but if you do obj = $('embed')
it'll work. It might be wise to wrap things around in a different way, that is do $('<div id="test/>')
and then append the embed/objects and change the src
and movie
values.
EDIT: IE doesn't seem to register object
until it has a type
or clsid
attribute specified, eg
EDIT #2: You can probably just inspect the outerHTML of the object element @ http://savedbythegoog.appspot.com/retrieve_cache?unique_id=http://code.google.com/apis/ajax/playground/samples/boilerplateHTML/youtube/chromeless.html|http://code.google.com/apis/ajax/playground/samples/js/youtube/chromeless.js&defaultSample=true
Post a Comment for "Enable Youtube Api On Existing Player"