开发者

How to play video from a specific position?

开发者 https://www.devze.com 2023-02-16 03:04 出处:网络
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'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

精彩评论

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