isMuted property

Gets a value indicating whether the element's audio is currently muted.

Syntax

JScript
muted = object.isMuted

 

Property values

Type: Boolean

One of the values in the Property Values section.

Examples

This example demonstrates the use of the isMuted property. The isMuted property returns true if the element's audio is muted, or returns false if the element's audio is not muted.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/isMuted.htm

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>isMuted Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">

<STYLE>
    .time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function checkIsMuted(){
    if(m1.currTimeState.isActive)
        isMuted1.innerText='isMuted: ' + m1.currTimeState.isMuted;
    else
    isMuted1.innerText='isMuted: No active object';
}
</SCRIPT>
</HEAD>

<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"
    LINK="#000000" VLINK="#808080" ALINK="#000000">

<t:media id="m1" begin="indefinite;"
    src="/workshop/samples/author/behaviors/media/shuttle3.wmv" fill="remove"/>

<BR><BR>
<SPAN id="isMuted1">isMuted: No active object</SPAN>
<BR><BR>

<BUTTON id="b0" onclick="m1.beginElement();checkIsMuted();">Start</BUTTON>
<BUTTON id="b3" onclick="m1.endElement();checkIsMuted();">Stop</BUTTON>
<BR><BR>

<B>Volume control:</B>&nbsp;
<input type="radio" name="i1" onpropertychange="m1.mute='true';checkIsMuted();">Mute
<input type="radio" name="i1"
    onpropertychange="m1.mute='false';m1.volume=100;checkIsMuted();" checked>100% Volume

</BODY>
</HTML>

See also

currTimeState

Reference

mute

Conceptual

Introduction to HTML+TIME