<?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: Race Conditions in Flex VideoDisplay</title>
	<atom:link href="http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/</link>
	<description>skate / hack / teach</description>
	<pubDate>Sat, 19 May 2012 18:40:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Jorrit</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-225</link>
		<dc:creator>Jorrit</dc:creator>
		<pubDate>Thu, 07 May 2009 08:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-225</guid>
		<description>I am working on an AIR application with high resoution video files (f4v files, 3000Kbps). Files are played fast after each other.

I have had two issues, one that seems like another race condition. I read cue points from the f4v file by reading XML data and parsing cue points from it. These CuePoints are added to the CuePointManager.

CuePointManager has a function called dispatchCuePoints. A check is performed wether or not the list of cuePoints is not null. If it isn't, a loop is performed. But in that loop cuePoints got set to null when I swapped a video. I added a check in the loop, to see if cuePoints got null while looping.

And another issues I had was with getting back into loading state quickly after the playing state was set. Due to this, no complete events were received anymore. I added in VideoPlayer.httpOnStatus under "NetStream.Play.Stop", before httpDoStopAtEnd(), the case LOADING. Be careful with this one though, I think this fixed an application specific error.

Hope this helps for those encountering the same thing.</description>
		<content:encoded><![CDATA[<p>I am working on an AIR application with high resoution video files (f4v files, 3000Kbps). Files are played fast after each other.</p>
<p>I have had two issues, one that seems like another race condition. I read cue points from the f4v file by reading XML data and parsing cue points from it. These CuePoints are added to the CuePointManager.</p>
<p>CuePointManager has a function called dispatchCuePoints. A check is performed wether or not the list of cuePoints is not null. If it isn&#8217;t, a loop is performed. But in that loop cuePoints got set to null when I swapped a video. I added a check in the loop, to see if cuePoints got null while looping.</p>
<p>And another issues I had was with getting back into loading state quickly after the playing state was set. Due to this, no complete events were received anymore. I added in VideoPlayer.httpOnStatus under &#8220;NetStream.Play.Stop&#8221;, before httpDoStopAtEnd(), the case LOADING. Be careful with this one though, I think this fixed an application specific error.</p>
<p>Hope this helps for those encountering the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ira Gordon</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-216</link>
		<dc:creator>Ira Gordon</dc:creator>
		<pubDate>Fri, 07 Nov 2008 21:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-216</guid>
		<description>I'm having the issue with VideoDisplay object loading the netstream twice.

How did you resolve this, bug ?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the issue with VideoDisplay object loading the netstream twice.</p>
<p>How did you resolve this, bug ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Black</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-153</link>
		<dc:creator>Gary Black</dc:creator>
		<pubDate>Fri, 18 Apr 2008 23:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-153</guid>
		<description>Thanks for the information...

It certainly helped me to understand some of what was going on.

To help the other guys, specifically Salick's problem - check out my blog at http://flexissues.blogspot.com/
&lt;a href="http://flexissues.blogspot.com/" rel="nofollow"&gt;http://flexissues.blogspot.com/&lt;/a&gt;

I found both this post and the bug fix one at adobe which basically got the dual stream problem sorted out.

I have included 2 zip files, both with the package structure intact for Flex2 and Flex 3 builds with full instructions on how to do this...

Cheers</description>
		<content:encoded><![CDATA[<p>Thanks for the information&#8230;</p>
<p>It certainly helped me to understand some of what was going on.</p>
<p>To help the other guys, specifically Salick&#8217;s problem - check out my blog at <a href="http://flexissues.blogspot.com/" rel="nofollow">http://flexissues.blogspot.com/</a><br />
<a href="http://flexissues.blogspot.com/" rel="nofollow">http://flexissues.blogspot.com/</a></p>
<p>I found both this post and the bug fix one at adobe which basically got the dual stream problem sorted out.</p>
<p>I have included 2 zip files, both with the package structure intact for Flex2 and Flex 3 builds with full instructions on how to do this&#8230;</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salick</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-151</link>
		<dc:creator>Salick</dc:creator>
		<pubDate>Tue, 15 Apr 2008 11:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-151</guid>
		<description>Hey,

what do u mean by "Just create the adobe package structure for the class you want to “patch” in your project"?

Could u explain the stages I should do exactly after editing the VideoPlayer class?</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>what do u mean by &#8220;Just create the adobe package structure for the class you want to “patch” in your project&#8221;?</p>
<p>Could u explain the stages I should do exactly after editing the VideoPlayer class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrislaan</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-148</link>
		<dc:creator>chrislaan</dc:creator>
		<pubDate>Fri, 15 Feb 2008 22:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-148</guid>
		<description>gorgeous... thanks a lot!</description>
		<content:encoded><![CDATA[<p>gorgeous&#8230; thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex sample streaming flv with xmoov: Labs@flexcoders</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-143</link>
		<dc:creator>Flex sample streaming flv with xmoov: Labs@flexcoders</dc:creator>
		<pubDate>Mon, 28 Jan 2008 21:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-143</guid>
		<description>[...] http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/" rel="nofollow">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bray</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-141</link>
		<dc:creator>Chris Bray</dc:creator>
		<pubDate>Wed, 09 Jan 2008 14:29:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-141</guid>
		<description>Thanks so much -- I have it working.  What a great feature.</description>
		<content:encoded><![CDATA[<p>Thanks so much &#8212; I have it working.  What a great feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-140</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Wed, 09 Jan 2008 13:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-140</guid>
		<description>yeah, and any assets it includes</description>
		<content:encoded><![CDATA[<p>yeah, and any assets it includes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bray</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-139</link>
		<dc:creator>Chris Bray</dc:creator>
		<pubDate>Wed, 09 Jan 2008 04:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-139</guid>
		<description>So, for the case of VideoPlayer would I include the entire source for the VideoPlayer class?</description>
		<content:encoded><![CDATA[<p>So, for the case of VideoPlayer would I include the entire source for the VideoPlayer class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-138</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Wed, 09 Jan 2008 03:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/#comment-138</guid>
		<description>@Chris,

almost.  you can compile individual classes from the SDK into your own SWF, to override just those classes.  Just create the adobe package structure for the class you want to "patch" in your project and it'll override the SDK version for your app.</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>almost.  you can compile individual classes from the SDK into your own SWF, to override just those classes.  Just create the adobe package structure for the class you want to &#8220;patch&#8221; in your project and it&#8217;ll override the SDK version for your app.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

