wmp - C#: AxWMPLib - Playing a portion of a song -
I am trying to play a song in a WinForms C # application using AxWMPLib COM control. However, I only want to play in a specific 30 seconds field of that song. So far, I can play the track from the beginning of that 30 seconds field (using the Ctrlcontrols.currentPosition member), but I have no way of specifying the end time.
What is the best way to go about playing only 30 seconds of this track?
I do not have a way of doing this completely WMP control
An alternative, and this can not be accurate, but you can try creating a timer with a 30 second tick time, then when you call axWmp.Play (...) Start that timer. When the timer is down, call axWmp.Stop ().
Comments
Post a Comment