Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a Boolean value that indicates whether the media contains audio.
Syntax
| JScript |
|---|
|
Property values
Type: Boolean
One of the values in the Property Values section.
Remarks
The hasAudio property returns true if the media has audio, regardless of the mute setting or the volume setting.
Examples
The following code example uses an alert message to show the value of the hasAudio property.
<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>hasAudio Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function doFunction(){
alert('hasAudio: ' + m1.hasAudio);
}
</SCRIPT>
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"
LINK="#000000" VLINK="#808080" ALINK="#000000">
<t:media id="m1" begin="0" src="/workshop/samples/author/behaviors/media/shuttle3.wmv"
onmediacomplete="doFunction();" fill="remove"/>
</BODY>
</HTML>