Compartir a través de


syncTolerance Property

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

Sets or gets the time variance that is allowed on a timeline with locked synchronization.

Syntax

HTML N/A
Scripting [ sTime = ] object.syncTolerance

Possible Values

sTime A String that specifies the amount of time variance, in seconds, that is allowed between synchronized elements.

The property is read/write. The property has no default value.

Remarks

This property is valid only for time containers with locked timelines, as defined using the SYNCBEHAVIOR attribute and the SYNCMASTER attribute. If the synchronization of locked elements is off by more than the syncTolerance value, the elements resynchronize.

Example

This example demonstrates how to use the syncTolerance property to get the time variance allowed on a timeline with locked synchronization. To use this example, replace the path some_media_file.wmv with a valid location path of a media file on your machine.

...
<SCRIPT>
function getsyncTolerance(){
//Retrieve the time variance using syncTolerance.
    osyncTolerance.innerText = oMedia1.syncTolerance;
}
</SCRIPT>
...
<t:PAR id="par2" timeAction="display" >
    <t:media id="oMedia1" begin="0" dur="20s" timeAction="display"
        syncMaster="true" syncBehavior="locked" src="some_media_file.wmv"
        onmediacomplete="getsyncTolerance()"/>
</t:PAR>
...

Applies To

t:ANIMATION, t:AUDIO, t:EXCL, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, time2, t:VIDEO

See Also

Introduction to HTML+TIME