Answered by:
Playing video clips

Question
-
I want to randomly play a video clip “possible different format” on a continues loop. Can I get how long the video will run or when the video has finished so the program knows when to select the next video.
Friday, June 11, 2010 5:12 PM
Answers
-
Take a look at the WMPlayer duration property http://msdn.microsoft.com/en-us/library/dd564790(VS.85).aspx
kaymaf
CODE CONVERTER SITE
- Proposed as answer by Andrew B. Painter Saturday, June 12, 2010 4:28 PM
- Marked as answer by Esther FanMicrosoft employee Sunday, February 6, 2011 7:19 AM
Friday, June 11, 2010 9:55 PM
All replies
-
I want to randomly play a video clip “possible different format” on a continues loop. Can I get how long the video will run or when the video has finished so the program knows when to select the next video.
If you are using Windows Media Player control to play the video, you can achieve this. Also you will only be able to play supported format with WMplayer control.kaymaf
CODE CONVERTER SITE
- Proposed as answer by Andrew B. Painter Saturday, June 12, 2010 4:26 PM
Friday, June 11, 2010 6:08 PM -
MediaPlayer1.URL = "c:\mediafile.wmv"
MediaPlayer1 = the media player
"C:\mediafile.wmv" is the file to be played
How do I know how long the clip will play for
Or when do I know it's stop playing.
I may be missing something but I've not done anything with video streaming before.
Thanks Peter
Friday, June 11, 2010 6:42 PM -
Take a look at the WMPlayer duration property http://msdn.microsoft.com/en-us/library/dd564790(VS.85).aspx
kaymaf
CODE CONVERTER SITE
- Proposed as answer by Andrew B. Painter Saturday, June 12, 2010 4:28 PM
- Marked as answer by Esther FanMicrosoft employee Sunday, February 6, 2011 7:19 AM
Friday, June 11, 2010 9:55 PM -
Thanks that's what I was after.
- Marked as answer by Peter hrod behrt Saturday, June 12, 2010 8:15 AM
- Unmarked as answer by Esther FanMicrosoft employee Sunday, February 6, 2011 7:19 AM
Saturday, June 12, 2010 8:15 AM