OpenTV Player SDK For iOS  version 2.30.0
NMPAsset Class Reference

NMPAsset aggregates all the information pertaining to an adaptive streaming media asset. More...

#import <Asset.h>

Inheritance diagram for NMPAsset:

Instance Methods

(NMPAsset *) - initWithAsset:
 

Properties

BOOL isProtected
 Checks if the asset is PRM protected. More...
 
NSString * PRMContentID
 Gets the PRM content ID linked to that asset. More...
 
NSString * PRMSyntax
 Gets the PRM syntax linked to that asset. More...
 
NSArray * mediaInfo
 Gets the various representations available for this adaptive streaming asset. More...
 
unsigned int duration
 Gets the duration of the asset once completely downloaded, in seconds. More...
 
unsigned int numberOfSegments
 Gets the number of segments that adaptive streaming asset is composed of once completely downloaded. More...
 
unsigned int IDInAssetTable
 

Detailed Description

NMPAsset aggregates all the information pertaining to an adaptive streaming media asset.

The information contained is a snapshot of the current download.

Definition at line 24 of file Asset.h.

Method Documentation

◆ initWithAsset:()

- (NMPAsset*) initWithAsset: (NMPAsset *)  asset

Property Documentation

◆ duration

- (unsigned int) duration
readatomicassign

Gets the duration of the asset once completely downloaded, in seconds.

Definition at line 54 of file Asset.h.

◆ IDInAssetTable

- (unsigned int) IDInAssetTable
readatomicassign

Definition at line 61 of file Asset.h.

◆ isProtected

- (BOOL) isProtected
readatomicassign

Checks if the asset is PRM protected.

Is true if the asset is encrypted; false otherwise.

Definition at line 31 of file Asset.h.

◆ mediaInfo

- (NSArray*) mediaInfo
readatomicassign

Gets the various representations available for this adaptive streaming asset.

NMPMediaInfo objects are contained in the array.

Definition at line 49 of file Asset.h.

◆ numberOfSegments

- (unsigned int) numberOfSegments
readatomicassign

Gets the number of segments that adaptive streaming asset is composed of once completely downloaded.

Definition at line 59 of file Asset.h.

◆ PRMContentID

- (NSString*) PRMContentID
readatomicassign

Gets the PRM content ID linked to that asset.

That value is available only if the asset is protected with PRM.

Definition at line 37 of file Asset.h.

◆ PRMSyntax

- (NSString*) PRMSyntax
readatomicassign

Gets the PRM syntax linked to that asset.

That value is available only if the asset is protected with PRM.

Definition at line 43 of file Asset.h.