Solved

monitor & set clip location in .net with wmp control

Posted on 2009-07-16
4
236 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 47
VB.net/WinForms: adjust Screen Resolution 6 41
BXR1220 speakers- does not work on another PC 12 50
Counting connections to SQL Server through C# 3 28
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …
Viewers will learn key ranges in Sampler to make their sampled instruments sound more realistic Gather samples of various notes and drag them to Key Range panel: Set proper root key for each sample: Select all the samples with Command-A (or Ctrl…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now