Поделиться через


bufferingProgress property

Gets a value that indicates the current percent of buffering completed.

Syntax

JScript
p = object.bufferingProgress

 

Property values

Type: Variant

Integer that receives the current percent of buffering completed.

Remarks

bufferingProgress was introduced in Microsoft Internet Explorer 6.

This property applies only to objects with streaming content.

Examples

The following example demonstrates how to retrieve the current percent of buffering completed, provided that the media file allows streaming content. By setting the syncBehavior attribute to locked, the parent timeline does not progress until the media object is ready to be played.

<HTML xmlns:t= "urn:schemas-microsoft-com:time">
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
    .time{behavior:url(#default#time2)}
</STYLE>
<BODY>        

<t:media id="mp2" src="/directory/file.asx" syncBehavior="locked" timeAction="display"/>

<P>Buffering Progress: 
    <SPAN class="time" dur="0.1" repeatCount="indefinite"
        onrepeat="innerText=mp2.bufferingProgress;">0</SPAN>
</P>
</BODY>
</HTML>

See also

animation

audio

img

media

ref

video

Introduction to HTML+TIME