Thanks for hosting the hangout! I attached the code we took a look at in the hangout:
The AS3 Youtube player won't unload with the destroy code below, causing a memory leak. I've attached a very simple runnable example of the problem with the code. Click the blue button to load and unload the video (let the player fully load, I removed the player-not-yet-loaded checks for readability)
Here is the relevant AS3 unloading code, in case anyone could see a problem on my end with it:
if (mVideoLoader)
{
mVideoLoader.
mVideoLoader.
mVideoLoader.
var player:Object = mVideoLoader.content;
player.removeEventListener("
player.stopVideo();
player.destroy();
player = null;
mVideoLoader.unloadAndStop(
if (mVideoLoader.parent)
mVideoLoader.parent.
mVideoLoader = null;
}
My current best guess is that the loader is a victim of this Flash bug: https://bugbase.adobe.com/
Thanks, Matt Woomer
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/-/81bRxTzkvv8J.
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