fsplayer.api.SoundController Class
The SoundController class provides sound control facilities and exposes the following constants and methods:
| Constants |
|
Constant |
Type |
Value |
Description |
|
VOLUME_CHANGED |
String |
soundListener_onSoundVolumeChanged |
Defines the name of the sound volume changed event. |
| Methods |
|
Method |
Description |
|
getVolume() |
Returns a numeric value defining current sound volume. |
|
setVolume(volume) |
Changes the sound volume. |
|
onSoundVolumeChanged(volume) |
This method is invoked when sound volume is changed if the SoundController.VOLUME_CHANGED event handler is enabled. The default implementation of this method does nothing, however you can override it specifying your own handler funciton. |
|
setSoundHandler(event) |
Enables the specified event handler. |
|
removeSoundHandler(event) |
Disables the specified event handler. |
See also