MediaElement Position + MediaTimeLine Duration Hi <div><br/></div> <div>I have an AVI</div> <div><br/></div> <div>I want to play it from a storyboard from position: 10seconds to position 13seconds.</div> <div><br/></div> <div><span style="font-family:Arial;font-size:13px;white-space:pre">MediaTimeLine has &quot;Duration&quot;, but the beginTime of course relates to the storyboard not the URIsource</span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">MediaElement has Position but can't set duration.</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">There doesn't seem to be a way to play a section of AVI, even by using code behind.</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">So, I have:</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"> <pre lang=x-xml> &lt;Storyboard x:Key=&quot;Storyboard1&quot; &gt; &lt;MediaTimeline Source=&quot;j:\DATA\study\18_01_2009_162353.AVI&quot; Storyboard.TargetName=&quot;vidMedia&quot; Duration=&quot;0:0:3&quot; /&gt; &lt;/Storyboard&gt;</pre> <br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">but want to add: &lt;Position = &quot;0:0:10&quot;&gt;</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Has anyone achieved this?</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Z <br/></span></span> <div><br/></div> <div><br/></div> </div>© 2009 Microsoft Corporation. All rights reserved.Sun, 05 Jul 2009 00:25:05 Z750c4b00-c0fb-41aa-9a44-920ac9d62a06http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#750c4b00-c0fb-41aa-9a44-920ac9d62a06http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#750c4b00-c0fb-41aa-9a44-920ac9d62a06zaurskahttp://social.msdn.microsoft.com/Profile/en-US/?user=zaurskaMediaElement Position + MediaTimeLine Duration Hi <div><br/></div> <div>I have an AVI</div> <div><br/></div> <div>I want to play it from a storyboard from position: 10seconds to position 13seconds.</div> <div><br/></div> <div><span style="font-family:Arial;font-size:13px;white-space:pre">MediaTimeLine has &quot;Duration&quot;, but the beginTime of course relates to the storyboard not the URIsource</span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">MediaElement has Position but can't set duration.</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">There doesn't seem to be a way to play a section of AVI, even by using code behind.</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">So, I have:</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"> <pre lang=x-xml> &lt;Storyboard x:Key=&quot;Storyboard1&quot; &gt; &lt;MediaTimeline Source=&quot;j:\DATA\study\18_01_2009_162353.AVI&quot; Storyboard.TargetName=&quot;vidMedia&quot; Duration=&quot;0:0:3&quot; /&gt; &lt;/Storyboard&gt;</pre> <br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">but want to add: &lt;Position = &quot;0:0:10&quot;&gt;</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Has anyone achieved this?</span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre"><br/></span></span></div> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Z <br/></span></span> <div><br/></div> <div><br/></div> </div>Tue, 16 Jun 2009 18:35:07 Z2009-06-16T18:35:07Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#f30db4fb-fc0f-423d-b7b8-fc1b870928bdhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#f30db4fb-fc0f-423d-b7b8-fc1b870928bdwguyhttp://social.msdn.microsoft.com/Profile/en-US/?user=wguyMediaElement Position + MediaTimeLine Duration hi, i am also waiting for this. Any help on this question will be greatly appreciated.Sat, 04 Jul 2009 19:33:43 Z2009-07-04T19:33:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#5c901e3f-dbb0-46df-b0c5-8f7884093136http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750c4b00-c0fb-41aa-9a44-920ac9d62a06#5c901e3f-dbb0-46df-b0c5-8f7884093136zaurskahttp://social.msdn.microsoft.com/Profile/en-US/?user=zaurskaMediaElement Position + MediaTimeLine Duration Sorry<br/><br/>No, still no answer as far as I know, and I spent at least 4 hours googling.<br/><br/>My get around was to put the AVI into MS movie maker - which is of course part of XP - take the clip I needed, and save the result renaming to a *.WMV.  Not exactly dynamic, and useless for when I have a bunch of samples I want to show the middle of.<br/><br/>I assume it will be part of 4.0 ???<br/><br/>Likewise, if you come across the answer I'd be grateful to know it.<br/><br/>Sun, 05 Jul 2009 00:25:05 Z2009-07-05T00:25:05Z