downloadCurrent Property | Internet Development Index |
Retrieves 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
This property applies only to streaming content.
Example
The following example demonstrates how to retrieve the current number of bytes downloaded from streaming content. By setting the syncBehavior attribute to locked, the parent's 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