Controlling volume in ActiveX

I am building an ActiveX control that hosts a browser COM control. I would like to be able to programmatically (from my ActiveX C++ code) control the sound volume of the embedded IE control.

I thought if I could get an IAudioClient interface from the web browser control, I could get its ISimpleAudioVolume, and that would allow me to control the sound volume. I have tried several ways to get the IAudioClient interface from the web browser control to no avail. I have even tried to get it from the IHTMLDocument. At this point, I am not sure what else to try…

Do you have any suggestions? I am on the right track for the approach? How could I obtain the IAudionClient interface from the Web Browser COM control?

[835 byte] By [FlorencioMazzoldi] at [2008-1-4]
# 1

IAudioClient and friends are part of the API for talking directly to the audio engine; I don't believe they are appropriate for controlling the audio in a web browser control, so I don't think you're on the right track.

I'm not completely sure where to redirect you, either, but the "Where is the Forum for..." forum is at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=881&SiteID=1, and hopefully someone there can point you to the right place for questions on ActiveX controls.

BeckyWeiss-MSFT at 2007-9-26 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...
# 2
Thanks Becky !!!!
FlorencioMazzoldi at 2007-9-26 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...