OpenTV Player SDK For iOS  version 2.30.0
NMPAVPlayer.h
Go to the documentation of this file.
14#import <AVFoundation/AVFoundation.h>
15#import "NMPTrackInfo.h"
16#import <MediaPlayer/MediaPlayer.h>
17
18#import "NMPAVPlayerItem.h"
19#import "INMPTagListener.h"
20
33@interface NMPAVPlayer : AVPlayer
34
43+ (id)playerWithURL:(NSURL *)URL;
44
55+ (id)playerWithPlayerItem:(AVPlayerItem *)item;
56
65- (instancetype)initWithURL:(NSURL *)URL;
66
77- (instancetype)initWithPlayerItem:(AVPlayerItem *)item NS_DESIGNATED_INITIALIZER;
78
86- (void)replaceCurrentItemWithPlayerItem:(AVPlayerItem *)item;
87
94@property (nonatomic) UIView* videoView;
95
104@property (nonatomic) int maxBandwidth;
105
114@property (nonatomic) CGSize maxResolution;
115
132- (BOOL) addSubtitleWithUrl: (const NSString*) xUrl
133 MIMEType: (NSString*) xMIMEType
134 Language: (NSString*) xLanguage;
135
152- (BOOL) addSubtitleWithContent: (const NSData*) xContent
153 MIMEType: (NSString*) xMIMEType
154 Language: (NSString*) xLanguage;
155
163-(void) registerTrackChangedListener:(id<INMPTrackChangedListener>) xListener;
164
172-(void) unregisterTrackChangedListener:(id<INMPTrackChangedListener>) xListener;
173
183- (NSArray* )getTrackInfo;
184
194- (void)selectTrack:(unsigned int) xIndex;
195
204- (void)deselectTrack:(unsigned int) xIndex;
205
219- (void)registerTagListener:(id<INMPTagListener>)xListener forTags:(NSArray<NSString*>*)xTags;
220
227- (void)unregisterTagListener:(id<INMPTagListener>)xListener;
228
234
235@end
Created on 03/09/2015.
NMPAVPlayer is the Nagra extension of iOS system AVPlayer class to support AES-128 scrambled Http Ada...
Definition: NMPAVPlayer.h:34
CGSize maxResolution
Property to set and get max resolution in pixels; For http adaptive streaming any stream with greater...
Definition: NMPAVPlayer.h:114
void unregisterAllTagListeners()
Unregister all INMPTagListeners.
int maxBandwidth
Property to set and get max bandwidth in unit of bit per second.
Definition: NMPAVPlayer.h:104
UIView * videoView
Property to set video renderView, and it also used as subtitle parent view.
Definition: NMPAVPlayer.h:94
NSArray * getTrackInfo()
Returns an array of the NMPTrackInfo of the current playing stream.
Used to receive specific HLS tags from each media playlists downloaded by NMPAVPlayer.
INMPTrackChangedListener provides notification for the client application when track information for ...
Definition: NMPTrackInfo.h:20