Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the media player in a C# program I'm making.
I am making controls to use instead of the default media controls.
For example:
button for Play
button for Stop
button for Pause
....
i have made a splitContainer to use as the volume control. It works fine.
however, i am also keeping the default media player controls visible on the form for the video playing. but i need to be able to tell when the user changes the volume via the default media player so i can alter the splitContainer to the right volume as the user does it on the default one.

for this I'd need an event like VolumeChanged on the media player but there isn't one. any ideas?
Posted

1 solution

It looks like this problem is solved in this CodeProject work:
Vista Core Audio API Master Volume Control[^].

Locate the sentence: "If you just want to be informed when somebody changes the volume settings, you can subscribe to the OnVolumeNotification event".

See also: http://social.msdn.microsoft.com/Forums/en-US/windowspro-audiodevelopment/thread/cb3de43e-3abb-4428-b58a-dc3e5f29db30/[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 2-Feb-12 17:51pm    
5'ed!
Sergey Alexandrovich Kryukov 2-Feb-12 19:18pm    
Thank you, Espen.
--SA
Rajesh Anuhya 2-Feb-12 21:07pm    
Have my +5
--RA
Sergey Alexandrovich Kryukov 2-Feb-12 21:11pm    
Thank you, Rajesh.
--SA
Joel Whatley- 3-Feb-12 13:39pm    
I don't understand. Is this event in Visual Studio? Because I can't find it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900