syncTolerance Property

Internet Development Index

Sets or retrieves the time variance allowed on a timeline with locked synchronization.

Syntax

HTMLN/A
Scriptingobject.syncTolerance [ = sTime ]

Possible Values

sTimeString that specifies the amount of time variance, in seconds, 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 and SYNCMASTER attributes. Once the synchronization of locked elements is off by more than the syncTolerance value, the elements resynchronize.

Example

This example demonstrates how to retrieve the time variance allowed on a timeline with locked synchronization using the syncTolerance property. 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>
...

Standards Information

This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 Non-Microsoft link.

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