<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog ntic de revolunet &#187; .NET</title>
	<atom:link href="http://blog.revolunet.com/index.php/conseil.intranet/developpement/net/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.revolunet.com</link>
	<description>Blog des Nouvelles Technologies de l'Information et de la Communication</description>
	<lastBuildDate>Mon, 08 Feb 2010 11:23:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WPF MediaElement + ASX workaround</title>
		<link>http://blog.revolunet.com/index.php/general/wpf-mediaelement-asx-workaround</link>
		<comments>http://blog.revolunet.com/index.php/general/wpf-mediaelement-asx-workaround#comments</comments>
		<pubDate>Fri, 13 Feb 2009 16:30:35 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[developpement]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/?p=272</guid>
		<description><![CDATA[This i my first English post so sorry for the poor english, and feel free to correct me  
I recently had to develop a multimedia XAML application  that plays Asx playlists with customs overlays and i faced to differents annoying, unresolved problems related to the MediaElement ASX handling. I discovered that the MediaElement behaves [...]]]></description>
			<content:encoded><![CDATA[<p>This i my first English post so sorry for the poor english, and feel free to correct me <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I recently had to develop a multimedia XAML application  that plays Asx playlists with customs overlays and i faced to differents annoying, unresolved problems related to the MediaElement ASX handling. I discovered that the MediaElement behaves very differently with medias played within an Asx and the same medias played direclty.</p>
<p>My four main problems were  :</p>
<ul>
<li>The MediaElement keeps the first Asx item aspect radio for the whole Asx. (cannot mix 4:3 and 16:9 medias)</li>
<li>If you add some still images in the Asx (jpeg), you cannot add animated overlays over it, because the animated items leave ugly black trails over the image&#8230; </li>
<li>The MediaElement doesnt play correctly WMV files inside an Asx. It stops before the end, and the Audio is a little bit desynchronised.</li>
<li>Maybe related to my last wmv playback problem, sometimes, even with &lt;REPEAT&gt; tags in the Asx, the MediaElement stops during a video.</li>
</ul>
<p>It took weeks to track and identify these problems&#8230;but if you test outside an Asx, all the problems go away, So its clearly related to MediaElement Asx handling. Problem is that MediaElement control is actually very limited.</p>
<p>So i finally decide to create a small AsxController class that simply parse an Asx file and control a specified MediaElement object. Its simple and it works like a charm. Supported Asx items are streams uri, files, but also still images with a specified duration. </p>
<p>Its written in VB.NET but you can easily translate it to C# or something else. It should be compatible with Silverlight.</p>
<p>Grab the source and example code here (rename to .vb) : <a title="AsxController.vb" href="http://blog.revolunet.com/wp-content/uploads/2009/02/asxcontroller.vb" target="_blank">AsxController.vb</a></p>
<p>Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/wpf-mediaelement-asx-workaround/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
