Solved

monitor & set clip location in .net with wmp control

Posted on 2009-07-16
4
267 Views
Last Modified: 2013-12-07
I'm using vs 2008 on vista. in c# i have a win media player control. while a clip is playing, i'd like to be able to periodically check the current location (in seconds) and to be able to set the current location.

i don't see the properties necessary to do so (i do see them in the ce version). ideas?

tia, bill
0
Comment
Question by:BlearyEye
  • 2
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24878022
What version of the Windows Media Player are you working with?  The version is important, because the code models change from version to version.
0
 
LVL 1

Author Comment

by:BlearyEye
ID: 24878874
wmp is version 11.0
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24879831
I believe that what you are looking for is wmp.Ctlcontrols.currentPosition.

IWMPControls::currentPosition Property
http://msdn.microsoft.com/en-us/library/dd564740(VS.85).aspx
0
 
LVL 1

Author Comment

by:BlearyEye
ID: 24881855
that seems to have done the trick. i'll test it a bit more, then close this question. thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The viewer will learn how to search for and apply Apple Loops, as well as create their own in Logic Pro X. Record a region in the tracks area: Select the region: Go to File > Export > Region to Loop Library: Select the appropriate search terms…
Viewers will learn how to use Macros for greater control over Rack parameters in Ableton Live. Group devices into a Rack by selecting them and pressing Command-G (Ctrl-G on PC): Control-click (Right Click on PC) a parameter to access pop-up menu, …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question