Share via


Windows Media Player 11 SDK DownloadItem Object 

Windows Media Player SDK banner art

Previous Next

DownloadItem Object

Note This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The DownloadItem object represents a file download request. It can be used by Web pages that are hosted in the full mode Windows Media Player and that have access to the External object, such as premium services.

The DownloadItem object supports the following properties.

Property Description
downloadState Retrieves the state of the download.
progress Retrieves the progress of the download in bytes.
size Retrieves the size of the download.
sourceURL Retrieves the source URL of the download.
type Retrieves the type of the download.

The DownloadItem object supports the following methods.

Method Description
cancel Cancels the download.
getItemInfo Retrieves the value of an attribute for the download item.
pause Pauses the download.
resume Resumes the download.

The DownloadItem object is accessed through the following property.

Object Property
DownloadCollection item

For purposes of illustration, DownloadManager.getDownloadCollection(collectionId).item(itemId) is used in the reference syntax sections.

See Also

Previous Next