13#import <Foundation/Foundation.h>
121@property (readonly,copy) NSString*
UUID;
139@property (readonly) NSString*
URI;
NMPDownloadState
The download state of a NMPDownload object.
@ STATE_REFRESHING
Download is refreshing.
@ STATE_SUCCESSFUL
Download is successful.
@ STATE_PAUSED
Download is paused.
@ STATE_FAILED
Download is failed.
@ STATE_PREPARING
Download is preparing.
@ STATE_PREPARED
Download is prepared.
@ STATE_RUNNING
Download is running.
NMPDownloadError
The download error of a NMPDownload object.
@ ERROR_HTTP_403
HTTP code 403 received and couldn't be handled by the downloader.
@ ERROR_MISFORMATTED_MAINFEST
The manifest is misformatted and doesn't comply to specification.
@ ERROR_UNKNOWN
An unknown or unexpected error occured.
@ ERROR_UNSUPPORTED_MAINFEST
Unsupported manifest version or features of a given protocol.
@ ERROR_MISFORMATTED_URI
The remote URI is misformatted and can't be used.
@ ERROR_HTTP_TOO_MANY_REDIRECTS
The download requests hopped over too many redirect.
@ ERROR_LIVE_CONTENT_NOT_SUPPORTED
Live content downloading is not supported.
@ ERROR_HTTP_UNHANDLED_CODE
Some unexpected HTTP code were received and couldn't be handled by the downloader.
@ ERROR_HTTP_DATA_ERROR
Some unexpected HTTP data error was observed, such as missing or incomplete payload,...
@ ERROR_INSUFFICIENT_SPACE
The storage path points to a device lacking space.
NMPAsset aggregates all the information pertaining to an adaptive streaming media asset.
This class aggregates all the information pertaining to the download of a media asset.
unsigned int timeRemaining
Returns an estimate of the time remaining to complete the download, in milliseconds.
NMPAsset * asset
Returns the Asset object of the download.
NMPDownloadState state
Returns the state of the download.
NSString * URI
Returns the URI of the content.
unsigned int bitrateEstimate
Get an estimate of the download bitrate, This value will fluctuate depending on the network condition...
unsigned int timeElapsed
Returns the time elapsed downloading, in milliseconds.
NSString * localURI
Returns the local URI of the content.
NMPDownloadError error
Returns the failure reason of the download.
NSString * UUID
Returns the Universal Unique ID attributed to this download.
unsigned int startTime
Returns the start time of the download, in seconds since 1970.