开发者

How to play video from a specific position?

I'm wanting to create a program that you can play an AVI file startin开发者_开发问答g at a specific position, and to play for a specified amount of time. I can't figure out how to start at a specific position. Anybody know what I should do? Thanks.


I assume that you are using MediaPlayer class to play the movie. You can start movie from a specific position by setting current position property. Here is the documentation of "position" property,

http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.position.aspx

Please see the list and description of other MediaPlayer functions at following link,

http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜