OpenTV Player SDK For iOS  version 2.30.0
Download.h File Reference

Created on 12/08/2014. More...

#import <Foundation/Foundation.h>
#import "Asset.h"

Go to the source code of this file.

Classes

class  NMPDownload
 This class aggregates all the information pertaining to the download of a media asset. More...
 

Enumerations

enum  NMPDownloadState {
  STATE_PREPARING = 0, STATE_PREPARED = 1, STATE_RUNNING = 2, STATE_PAUSED = 3,
  STATE_REFRESHING = 4, STATE_SUCCESSFUL = 100, STATE_FAILED = 200
}
 The download state of a NMPDownload object. More...
 
enum  NMPDownloadError {
  ERROR_UNKNOWN, ERROR_MISFORMATTED_URI, ERROR_MISFORMATTED_MAINFEST, ERROR_UNSUPPORTED_MAINFEST,
  ERROR_HTTP_UNHANDLED_CODE, ERROR_HTTP_DATA_ERROR, ERROR_HTTP_TOO_MANY_REDIRECTS, ERROR_INSUFFICIENT_SPACE,
  ERROR_LIVE_CONTENT_NOT_SUPPORTED, ERROR_HTTP_403
}
 The download error of a NMPDownload object. More...
 

Detailed Description

Created on 12/08/2014.

Copyright(c) 2014 Nagravision S.A, All Rights Reserved. This software is the proprietary information of Nagravision S.A.

Definition in file Download.h.

Enumeration Type Documentation

◆ NMPDownloadError

The download error of a NMPDownload object.

Enumerator
ERROR_UNKNOWN 

An unknown or unexpected error occured.

ERROR_MISFORMATTED_URI 

The remote URI is misformatted and can't be used.

ERROR_MISFORMATTED_MAINFEST 

The manifest is misformatted and doesn't comply to specification.

ERROR_UNSUPPORTED_MAINFEST 

Unsupported manifest version or features of a given protocol.

For instance the HLS protocol version or a given feature linked to a protocol version.

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, and couldn't be handled by the downloader.

ERROR_HTTP_TOO_MANY_REDIRECTS 

The download requests hopped over too many redirect.

ERROR_INSUFFICIENT_SPACE 

The storage path points to a device lacking space.

ERROR_LIVE_CONTENT_NOT_SUPPORTED 

Live content downloading is not supported.

ERROR_HTTP_403 

HTTP code 403 received and couldn't be handled by the downloader.

Definition at line 57 of file Download.h.

◆ NMPDownloadState

The download state of a NMPDownload object.

The transition table goes as follows :

FROMTO
STATE_PREPARINGSTATE_PREPARED, STATE_FAILED
STATE_PREPAREDSTATE_RUNNING, STATE_FAILED
STATE_RUNNINGSTATE_PAUSED, STATE_SUCCESSFUL, STATE_FAILED
STATE_PAUSEDSTATE_RUNNING, STATE_FAILED
STATE_SUCCESSFULN/A
STATE_FAILEDSTATE_PREPARING, STATE_RUNNING
Enumerator
STATE_PREPARING 

Download is preparing.

STATE_PREPARED 

Download is prepared.

STATE_RUNNING 

Download is running.

STATE_PAUSED 

Download is paused.

STATE_REFRESHING 

Download is refreshing.

STATE_SUCCESSFUL 

Download is successful.

STATE_FAILED 

Download is failed.

Definition at line 31 of file Download.h.