On Mon, 2012-06-04 at 03:26 -0700, Aicke Schulz wrote:
> What I want to have is a simple solution to close and stop the video,
> without using the JavaScript Player API, because I do not need any
> other functionality then open+autostart and close.
> That works in any other browser, so it has to be a bug of IE9 or the
> IFrame API
It's definitely related to a bug in IE9 (I've hit it before in my own
code and reported it to Microsoft).
I don't have access to IE at the moment, but can you do something like
this:
$('closevideo').addEvent('click', function(event){
event.stop();
$('ytplayer').src = '';
setTimeout(function () {
$('video').set('html', '');
}, 100);
});
What you're trying to do is to give the document in the iframe to get a
chance to unload properly before IE removes the iframe (and the
environment it needs to unload properly along with it).
Tim
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment