Alright, we use the IFrame API as intended (I think), but get the mentioned error message "__flash__removeCallback is undefined", too.
See the following fiddle in IE9: http://jsfiddle.net/uUPub/3/
1. Closing the video by removing the code results in the error.
2. hiding the video results in no error but the video isn't stopped.
3. Hiding the video and then closing it, results in the error, too.
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.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/1ZzUQ7dZsbYJ.
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.
I got the solution.
ReplyDeletetry {
ytplayer.getIframe().src='';
} catch(ex) {
}