OpenTV Player SDK For iOS  version 2.30.0
NMPMediaInfo Class Reference

NMPMediaInfo aggregates all the information pertaining to an adaptive streaming media representation. More...

#import <MediaInfo.h>

Inheritance diagram for NMPMediaInfo:

Instance Methods

(NMPMediaInfo *) - initWithMediaInfo:
 

Properties

long bitrate
 The media bitrate variant as presented by the underlying adaptive bitrate manifest in Kbps. More...
 
NSString * resolution
 The media resolution variant as presented by the underlying adaptive resolution manifest. More...
 
uint64_t totalSizeEstimate
 The estimate of the total size in bytes. More...
 
uint64_t totalSizeDownloaded
 The total size in bytes downloaded so far. More...
 
unsigned int numberOfSegmentsDownloaded
 The number of segments acquired so far and currently present on storage. More...
 
BOOL selected
 Indicates if current NMPMediaInfo is the selected media to download. More...
 
NSString * realURI
 The remote URI of the media. More...
 
NSString * localFile
 The local storage path of the media. More...
 

Detailed Description

NMPMediaInfo aggregates all the information pertaining to an adaptive streaming media representation.

The information contained in it is a snapshot of the current download.

See also
NMPAsset

Definition at line 24 of file MediaInfo.h.

Method Documentation

◆ initWithMediaInfo:()

- (NMPMediaInfo*) initWithMediaInfo: (NMPMediaInfo *)  mediaInfo

Property Documentation

◆ bitrate

- (long) bitrate
readatomicassign

The media bitrate variant as presented by the underlying adaptive bitrate manifest in Kbps.

Definition at line 29 of file MediaInfo.h.

◆ localFile

- (NSString*) localFile
readatomicassign

The local storage path of the media.

Definition at line 69 of file MediaInfo.h.

◆ numberOfSegmentsDownloaded

- (unsigned int) numberOfSegmentsDownloaded
readatomicassign

The number of segments acquired so far and currently present on storage.

Definition at line 54 of file MediaInfo.h.

◆ realURI

- (NSString*) realURI
readatomicassign

The remote URI of the media.

Definition at line 64 of file MediaInfo.h.

◆ resolution

- (NSString*) resolution
readatomicassign

The media resolution variant as presented by the underlying adaptive resolution manifest.

Definition at line 34 of file MediaInfo.h.

◆ selected

- (BOOL) selected
readatomicassign

Indicates if current NMPMediaInfo is the selected media to download.

Definition at line 59 of file MediaInfo.h.

◆ totalSizeDownloaded

- (uint64_t) totalSizeDownloaded
readatomicassign

The total size in bytes downloaded so far.

This value can over or under shoot compared to the estimate, but it represent the occupied space on storage at any moment in time.

Definition at line 49 of file MediaInfo.h.

◆ totalSizeEstimate

- (uint64_t) totalSizeEstimate
readatomicassign

The estimate of the total size in bytes.

The resulting downloaded size in bytes can differ slightly.

Definition at line 41 of file MediaInfo.h.