NMPAVPlayerItem is the Nagra extension of iOS system AVPlayerItem class to support AES-128 scrambled Http Adaptive Streaming protocol stream with hybrid integration with Nagra CPAK library.
More...
#import <NMPAVPlayerItem.h>
NMPAVPlayerItem is the Nagra extension of iOS system AVPlayerItem class to support AES-128 scrambled Http Adaptive Streaming protocol stream with hybrid integration with Nagra CPAK library.
To learn more about AVPlayerItem, please refer to Apple online document: https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVPlayerItem_Class/index.html
Definition at line 28 of file NMPAVPlayerItem.h.
◆ initWithAsset:()
- (instancetype) initWithAsset: |
|
(AVAsset *) |
asset |
|
Initializes an AVPlayerItem with an AVAsset.
- Parameters
-
[in] | asset | An instance of AVAsset that references a media resource |
- Returns
- An instance of NMPAVPlayerItem.
- Note
- To play AES-128 encrypted HLS stream asset must be an instance of NMPAVAsset or NMPAVURLAsset.
◆ initWithAsset:automaticallyLoadedAssetKeys:()
- (instancetype) initWithAsset: |
|
(AVAsset *) |
asset |
automaticallyLoadedAssetKeys: |
|
(NSArray *) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Initializes an AVPlayerItem with an AVAsset.
- Parameters
-
[in] | asset | An instance of AVAsset that references a media resource |
[in] | automaticallyLoadedAssetKeys | An NSArray of NSStrings, each representing a property key defined by AVAsset. See AVAsset.h for property keys, e.g. duration. |
- Returns
- An instance of NMPAVPlayerItem.
- Note
- To play AES-128 encrypted HLS stream asset must be an instance of NMPAVAsset or NMPAVURLAsset.
◆ initWithURL:()
- (instancetype) initWithURL: |
|
(NSURL *) |
URL |
|
Initializes an AVPlayerItem with an NSURL.
- Parameters
-
[in] | URL | An instance of NSURL that references a media resource. |
- Returns
- An instance of NMPAVPlayerItem.
◆ playerItemWithAsset:()
Returns an instance of NMPAVPlayerItem for playing an AVAsset.
- Parameters
-
[in] | asset | An instance of AVAsset that references a media resource |
- Returns
- An instance of NMPAVPlayerItem.
- Note
- To play AES-128 encrypted HLS stream asset must be an instance of NMPAVAsset or NMPAVURLAsset.
◆ playerItemWithAsset:automaticallyLoadedAssetKeys:()
Returns an instance of NMPAVPlayerItem for playing an AVAsset.
- Parameters
-
[in] | asset | An instance of AVAsset that references a media resource |
[in] | automaticallyLoadedAssetKeys | An NSArray of NSStrings, each representing a property key defined by AVAsset. See AVAsset.h for property keys, e.g. duration. |
- Returns
- An instance of NMPAVPlayerItem.
- Note
- To play AES-128 encrypted HLS stream asset must be an instance of NMPAVAsset or NMPAVURLAsset.
◆ playerItemWithURL:()
Returns an instance of NMPAVPlayerItem for playing a resource at the specified location.
- Parameters
-
[in] | URL | An instance of NSURL that references a media resource. |
- Returns
- An instance of NMPAVPlayerItem.