<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Listening for a Flash Video&#8217;s cue points using the VideoDisplay control</title>
	<atom:link href="http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: creacog</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-10380</link>
		<dc:creator>creacog</dc:creator>
		<pubDate>Thu, 09 Feb 2012 14:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-10380</guid>
		<description>@Iver, old post I know, but I had to revert using mx:VideoDisplay in my Fx4 project just now.

You can get mx.events.MetadataEvent.CUE_POINT if you are prepared to go mx_internal...

Listen for metadataReceived on your mx:VideoDisplay. In that handler add a cuePointListener to VideoDisplay&#039;s internal videoPlayer, thus:

videoDisplay.mx_internal::videoPlayer.addEventListener(
MetadataEvent.CUE_POINT, myCuePointHandler );</description>
		<content:encoded><![CDATA[<p>@Iver, old post I know, but I had to revert using mx:VideoDisplay in my Fx4 project just now.</p>
<p>You can get mx.events.MetadataEvent.CUE_POINT if you are prepared to go mx_internal&#8230;</p>
<p>Listen for metadataReceived on your mx:VideoDisplay. In that handler add a cuePointListener to VideoDisplay&#8217;s internal videoPlayer, thus:</p>
<p>videoDisplay.mx_internal::videoPlayer.addEventListener(<br />
MetadataEvent.CUE_POINT, myCuePointHandler );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Dietz</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-8660</link>
		<dc:creator>Rob Dietz</dc:creator>
		<pubDate>Fri, 10 Dec 2010 21:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-8660</guid>
		<description>What about doing this in reverse? I&#039;d like to inject cuePoints into the videoDisplay from a numberStepper or other control. This might allow me dynamically set loop points within a video similar to what can be done with Quicktime or other video editing app&#039;s.

I already have a function to handle the looping: when cuePoint #2 is reached the playHeadTime changes to match cuePoint #1&#039;s time. I am able to set these cuePoints once but cannot move change them and have the videoDisplay update accordingly.

Thanks for all the great tutorials.</description>
		<content:encoded><![CDATA[<p>What about doing this in reverse? I&#8217;d like to inject cuePoints into the videoDisplay from a numberStepper or other control. This might allow me dynamically set loop points within a video similar to what can be done with Quicktime or other video editing app&#8217;s.</p>
<p>I already have a function to handle the looping: when cuePoint #2 is reached the playHeadTime changes to match cuePoint #1&#8242;s time. I am able to set these cuePoints once but cannot move change them and have the videoDisplay update accordingly.</p>
<p>Thanks for all the great tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-4249</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 29 Jun 2009 05:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-4249</guid>
		<description>Iver Davidson,

Hhmm, can you please file a bug/enhancement request for this at http://bugs.adobe.com/flex .
I think this should be a little easier, and the CuePointEvent should probably include a &lt;code&gt;cuePointProperties&lt;/code&gt; object.

Regardless, here&#039;s a way you can look up the VideoDisplay control&#039;s metadata &lt;code&gt;cuePoints&lt;/code&gt; property and compare it to the current cue point object:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;
            import mx.events.CuePointEvent;

            private function vidDisp_cuePoint(evt:CuePointEvent):void {
                var cuePointObj:Object = getCuePointByName(evt.cuePointName);
                trace(evt.cuePointName, ObjectUtil.toString(cuePointObj));
            }

            private function getCuePointByName(value:String):Object {
                var obj:Object;
                var cuePointArr:Array = vidDisp.metadata.cuePoints;
                var idx:uint;
                var len:int = cuePointArr.length;
                for (idx = 0; idx &lt; len; idx++) {
                    if (cuePointArr[idx].name == value) {
                        return cuePointArr[idx];
                    }
                }
                return null;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:VideoDisplay id=&quot;vidDisp&quot;
            source=&quot;http://helpexamples.com/flash/video/cuepoints.flv&quot;
            cuePoint=&quot;vidDisp_cuePoint(event);&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Iver Davidson,</p>
<p>Hhmm, can you please file a bug/enhancement request for this at <a href="http://bugs.adobe.com/flex" rel="nofollow">http://bugs.adobe.com/flex</a> .<br />
I think this should be a little easier, and the CuePointEvent should probably include a <code>cuePointProperties</code> object.</p>
<p>Regardless, here&#8217;s a way you can look up the VideoDisplay control&#8217;s metadata <code>cuePoints</code> property and compare it to the current cue point object:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;
            import mx.events.CuePointEvent;

            private function vidDisp_cuePoint(evt:CuePointEvent):void {
                var cuePointObj:Object = getCuePointByName(evt.cuePointName);
                trace(evt.cuePointName, ObjectUtil.toString(cuePointObj));
            }

            private function getCuePointByName(value:String):Object {
                var obj:Object;
                var cuePointArr:Array = vidDisp.metadata.cuePoints;
                var idx:uint;
                var len:int = cuePointArr.length;
                for (idx = 0; idx &lt; len; idx++) {
                    if (cuePointArr[idx].name == value) {
                        return cuePointArr[idx];
                    }
                }
                return null;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:VideoDisplay id="vidDisp"
            source="http://helpexamples.com/flash/video/cuepoints.flv"
            cuePoint="vidDisp_cuePoint(event);" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iver Davidson</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-4248</link>
		<dc:creator>Iver Davidson</dc:creator>
		<pubDate>Fri, 26 Jun 2009 21:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-4248</guid>
		<description>I find a lot of information on how to access the cuepoint name and time and type, but nothing on how to access cuepoint parameters. Does anyone know how to do that using the VideoDisplay component?

thanks.</description>
		<content:encoded><![CDATA[<p>I find a lot of information on how to access the cuepoint name and time and type, but nothing on how to access cuepoint parameters. Does anyone know how to do that using the VideoDisplay component?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skye</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-31</link>
		<dc:creator>Skye</dc:creator>
		<pubDate>Tue, 07 Aug 2007 00:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-31</guid>
		<description>Peter,

In another post, I though I solicitation for suggestions for a Syntax Highlighter. I just stumbled upon this:
http://www.machine501.com/2007/05/29/syntax-highlight-as3/

(via http://www.tombray.com/?p=31 .... via http://weblogs.macromedia.com/mxna/ )</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>In another post, I though I solicitation for suggestions for a Syntax Highlighter. I just stumbled upon this:<br />
<a href="http://www.machine501.com/2007/05/29/syntax-highlight-as3/" rel="nofollow">http://www.machine501.com/2007/05/29/syntax-highlight-as3/</a></p>
<p>(via <a href="http://www.tombray.com/?p=31" rel="nofollow">http://www.tombray.com/?p=31</a> &#8230;. via <a href="http://weblogs.macromedia.com/mxna/" rel="nofollow">http://weblogs.macromedia.com/mxna/</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/comment-page-1/#comment-30</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 24 Jul 2007 00:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/listening-for-a-flash-videos-cue-points-using-the-videodisplay-control/#comment-30</guid>
		<description>Sorry for the lack of formatting, I hope to clean these up in the near future and include the working examples, view-source, and all that &quot;stuff&quot;.</description>
		<content:encoded><![CDATA[<p>Sorry for the lack of formatting, I hope to clean these up in the near future and include the working examples, view-source, and all that &#8220;stuff&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

