downloadCurrent Property | DHTML中文手册 |
Retrieves a value that indicates the current number of bytes downloaded from streaming content.
dhtml语法
HTML N/A Scripting [ idownloadCurrent = ] object.downloadCurrent
DHTML可能的值
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.
DHTML代码范例
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
更多语法参考
Introduction to HTML+TIME