This method returns an integer representing the estimated number of seconds it will take for a visitor to download a particular file from your web server, based on the size of the file and their detected connection speed.
Syntax:
numSec = bhObject.EstDownloadTimeSec fullPathToDownloadFile
fullPathToDownloadFile: A string representing the full path and file name of the file you wish to estimate the download time for. For example: "c:\inetpub\wwwroot\downloads\file1.zip".
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "ConnectionSpeed"
bhObj.GetExtPropertiesEx
%>
<html> Estimated number of seconds to download myfile.zip is:
<% numSec = bhObh.EstDownloadTimeSec "c:\inetpub\wwwroot\downloads\myfile.zip"
response.write numSec %>
</html>
Note: You must call use SetExtProperties and GetExtPropertiesEx to test the connection speed prior to calling this method.
Note: A return value of 0 indicates that the connection speed test returned a value of 0, and therefore the download time cannot be determined. See the ConnectionSpeed property for information on why it may return 0.
Note: This method requires the Enterprise Edition of BrowserHawk.
See Also: