Page 1 of 1

Controlling movie volume?

Posted: Wed Apr 05, 2006 7:52 pm
by tconkling
Is there a way to control the volume of a Flash movie from within the host app? I did a search for "volume" in the various FlashPlayerControl headers and didn't find anything.

Posted: Thu Apr 06, 2006 4:51 pm
by Softanics
Thank you for your question.
I'm sorry, in the current version it's impossible.

Posted: Tue Apr 11, 2006 2:16 pm
by Zeratul
I also need this feature. Can you make it in new version ?
Something like SetVolume(0 - 100)/GetVolume will be very usefull.

Posted: Tue Apr 11, 2006 2:24 pm
by Softanics
We will include this feature in the nearest release.

Posted: Wed Apr 12, 2006 11:21 am
by Softanics
The feature is added.

Use the functions FPC_PutAudioVolume and FPC_GetAudioVolume.
They are declared in FlashPlayerControl.h:

Code: Select all

// Audio volume
#define DEF_MAX_FLASH_AUDIO_VOLUME   (0xFFFF)

// 0 <= nVolume <= DEF_MAX_FLASH_AUDIO_VOLUME
HRESULT WINAPI FPC_PutAudioVolume(DWORD dwVolume);
HRESULT WINAPI FPC_GetAudioVolume(DWORD* pdwVolume);