ColdFusion.Mediaplayer.setMute

Description

Mutes or unmutes the sound of the media player.

Function syntax

ColdFusion.Mediaplayer.setMute("name", mute)

See also

ColdFusion.Mediaplayer.resizeColdFusion.Mediaplayer.setSourceColdFusion.Mediaplayer.setVolume

ColdFusion.Mediaplayer.startPlayColdFusion.Mediaplayer.stopPlay

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

name

Specifies the value of the name attribute of the cfmediaplayer tag.

mute

A Boolean value specifying whether to mute the sound (true), or to turn off the mute (false).

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.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"/>

 

Get help faster and easier

New user?