共用方式為


downloadCurrent Property

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

Gets a value that indicates the current number of bytes downloaded from streaming content.

Syntax

HTML N/A
Scripting [ idownloadCurrent = ] object.downloadCurrent

Possible Values

idownloadCurrent Integer that receives the current number of bytes downloaded from streaming content.

The property is read-only. The property has no default value.

Remarks

downloadCurrent was introduced in Microsoft Internet Explorer 6.

This property applies only to streaming content.

Example

The following example demonstrates how to get the current number of bytes downloaded from 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>DownloadCurrent: 
    <SPAN class="time" dur="0.1" repeatCount="indefinite"
        onrepeat="innerText=mp2.downloadCurrent;">0</SPAN>
</P>

</BODY>
</HTML>

Applies To

t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO

See Also

Introduction to HTML+TIME