Partilhar via


isMuted Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

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

Syntax

[ bMuted = ] currTimeState.isMuted

Possible Values

bMuted Boolean that receives one of the following values.
true
Element's audio is currently muted.
false
Default. Element's audio is not muted.

The property is read-only. The property has a default value of false.

Example

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.

<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>

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

Applies To

currTimeState

See Also

Introduction to HTML+TIME, mute