Description
Sets the volume of sound of the media player.
Function syntax
ColdFusion.Mediaplayer.setVolume("name", "volume") |
See also
ColdFusion.Mediaplayer.resize, ColdFusion.Mediaplayer.setMute, ColdFusion.Mediaplayer.setSource,
ColdFusion.Mediaplayer.startPlay, ColdFusion.Mediaplayer.stopPlay
History
ColdFusion 9: Added this function
Parameters
Parameter |
Description |
---|---|
name |
Specifies the value of the name attribute of the cfmediaplayer tag. |
volume |
The value of the volume. It can take any value from 0.0 through 1.0. |
Returns
This function does not return any value.
Example
In this example, the FLV file is stored in the web root used by the ColdFusion server. Store an FLV file - video.flv in the location _web_root\xyz_.
<h3>This is an example of the Mediaplayer.setvolume function. Clicking the Set Volume button increases the volume of the media player.</h3> |