Compartir a través de


syncTolerance property

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

Syntax

JScript
object.syncTolerance = sTimesTime = object.syncTolerance

 

Property values

Type: String

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

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.

Examples

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

See also

animation

audio

excl

img

media

par

ref

seq

time2

video

Introduction to HTML+TIME