<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: FLVPlayback doesn&#8217;t unload flvs, becomes memory hog</title>
	<atom:link href="http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/</link>
	<description>I Flash und I Flex Jaaaa</description>
	<pubDate>Fri, 21 Nov 2008 12:17:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Lawrie</title>
		<link>http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/#comment-680</link>
		<dc:creator>Lawrie</dc:creator>
		<pubDate>Sat, 15 Nov 2008 17:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=40#comment-680</guid>
		<description>You know, I spent about an hour trawling for 'why flv won't play twice' before I found this and noticed that the READY event wouldn't fire if the clip had already been loaded. I'm loading my clips randomly from an array and the chance was 1 in 8 that it would try and load the same one again.

Unfortunately I couldn't ditch using the READY event because I was using alpha tweens and all kinds of crap, and they won't work unless a loaded video is READY. So I created a transparent .flv clip 1/24th of a second long and loaded *that* before I re-loaded my actual video clip.

It's a hacky fix, but it totally works.</description>
		<content:encoded><![CDATA[<p>You know, I spent about an hour trawling for &#8216;why flv won&#8217;t play twice&#8217; before I found this and noticed that the READY event wouldn&#8217;t fire if the clip had already been loaded. I&#8217;m loading my clips randomly from an array and the chance was 1 in 8 that it would try and load the same one again.</p>
<p>Unfortunately I couldn&#8217;t ditch using the READY event because I was using alpha tweens and all kinds of crap, and they won&#8217;t work unless a loaded video is READY. So I created a transparent .flv clip 1/24th of a second long and loaded *that* before I re-loaded my actual video clip.</p>
<p>It&#8217;s a hacky fix, but it totally works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe the plumber</title>
		<link>http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/#comment-619</link>
		<dc:creator>joe the plumber</dc:creator>
		<pubDate>Fri, 24 Oct 2008 15:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=40#comment-619</guid>
		<description>my_video.videoContainer.attachVideo(null);</description>
		<content:encoded><![CDATA[<p>my_video.videoContainer.attachVideo(null);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Schmalhaus</title>
		<link>http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/#comment-545</link>
		<dc:creator>Stefan Schmalhaus</dc:creator>
		<pubDate>Sat, 02 Aug 2008 15:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=40#comment-545</guid>
		<description>Oh, how I wish I had found your blog earlier! It took me several hours to find out that VideoEvent.READY doesn't fire if the video is still loaded.</description>
		<content:encoded><![CDATA[<p>Oh, how I wish I had found your blog earlier! It took me several hours to find out that VideoEvent.READY doesn&#8217;t fire if the video is still loaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chichilatte</title>
		<link>http://www.sakri.net/blog/2008/07/10/flvplayback-doesnt-unload-flvs-becomes-memory-hog/#comment-535</link>
		<dc:creator>chichilatte</dc:creator>
		<pubDate>Fri, 25 Jul 2008 19:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=40#comment-535</guid>
		<description>Have you tried setting the activeVideoPlayerIndex property of your FLVPlayback instances to a non-zero value? Then you'll be able to call the closeVideoPlayer(theIndexYouSet) method and have it actually work (it doesn't work when the index is at the default 0). In as2, that was the only way you'd be able to get rid of an flv. Not sure if that is precisely the same as unloading an FLVPlayback instance from memory, but seems related. Especially considering the buggy unload() behaviour of the flash garbage collector, which suggests that you'd need to remove as much as possible from the instance before it can be gc'd.

http://gskinner.com/blog/archives/2008/04/failure_to_unlo.html

PS don't forget to set the visibleVideoPlayerIndex property to the same index as the active index!</description>
		<content:encoded><![CDATA[<p>Have you tried setting the activeVideoPlayerIndex property of your FLVPlayback instances to a non-zero value? Then you&#8217;ll be able to call the closeVideoPlayer(theIndexYouSet) method and have it actually work (it doesn&#8217;t work when the index is at the default 0). In as2, that was the only way you&#8217;d be able to get rid of an flv. Not sure if that is precisely the same as unloading an FLVPlayback instance from memory, but seems related. Especially considering the buggy unload() behaviour of the flash garbage collector, which suggests that you&#8217;d need to remove as much as possible from the instance before it can be gc&#8217;d.</p>
<p><a href="http://gskinner.com/blog/archives/2008/04/failure_to_unlo.html" rel="nofollow">http://gskinner.com/blog/archives/2008/04/failure_to_unlo.html</a></p>
<p>PS don&#8217;t forget to set the visibleVideoPlayerIndex property to the same index as the active index!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
