isMuted Property

Internet Development Index

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

Syntax

[ bMuted = ] currTimeState.isMuted

Possible Values

bMutedBoolean that receives one of the following values.
trueElement's audio is currently muted.
falseDefault. 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 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="../../common/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>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

currTimeState

See Also

Introduction to HTML+TIME, mute