locked
Controlling volume in ActiveX RRS feed

  • Question

  • 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?

    Friday, June 1, 2007 10:13 PM

Answers

  • 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.

    Monday, June 4, 2007 4:26 PM

All replies

  • 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.

    Monday, June 4, 2007 4:26 PM
  • Thanks Becky !!!!
    Wednesday, June 6, 2007 12:36 PM