ColdFusion 9.0 Resources |
ColdFusion.MediaPlayer.setMuteDescriptionMutes or unmutes the sound of the media player. Function syntaxColdFusion.MediaPlayer.setMute("name", mute) See alsoColdFusion.MediaPlayer.resize, ColdFusion.MediaPlayer.setSource, ColdFusion.MediaPlayer.setVolume, ColdFusion.MediaPlayer.startPlay, ColdFusion.MediaPlayer.stopPlay HistoryColdFusion 9: Added this function Parameters
ReturnsThis function does not return any value. ExampleIn 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.setmute function. Clicking the Mute button mutes the media player.</h3> <script language="JavaScript" type="text/javascript"> function onMute() { ColdFusion.Mediaplayer.setMute('Myvideo', true); }; </script> <br> <form> <input type="button" name="mute" value="Mute" onClick="onMute()"> </form> <cfmediaplayer name="Myvideo" source="/xyz/video.flv" width=500 height=400 align="middle" quality="high" fullscreencontrol="true"/> |