Задайте вопросЗадайте вопрос
 

ВопросMediaElement Position + MediaTimeLine Duration

  • 16 июня 2009 г. 18:35zaurska Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     С кодом
    Hi

    I have an AVI

    I want to play it from a storyboard from position: 10seconds to position 13seconds.

    MediaTimeLine has "Duration", but the beginTime of course relates to the storyboard not the URIsource

    MediaElement has Position but can't set duration.

    There doesn't seem to be a way to play a section of AVI, even by using code behind.

    So, I have:

    		<Storyboard x:Key="Storyboard1" >
    		 <MediaTimeline Source="j:\DATA\study\18_01_2009_162353.AVI"
                            Storyboard.TargetName="vidMedia"
                            Duration="0:0:3"
                            />
    		</Storyboard>
    

    but want to add: <Position = "0:0:10">

    Has anyone achieved this?

    Z


Все ответы