Kantar Media Streaming Sensor iOS
Kantar Media Streaming Measurement Library for iOS
KMA_SpringStreams.h
Go to the documentation of this file.
1 //
2 // KMA_SpringStreams.h
3 // KMA_SpringStreams
4 //
5 // Created by Frank Kammann on 26.08.11.
6 // Copyright 2017 Kantar Media. All rights reserved.
7 //
8 #import <AVKit/AVKit.h>
9 #import <AVFoundation/AVFoundation.h>
10 
12 
13 
20 extern NSString *const KMA_STREAMING_DEBUGINTERFACE_NOTIFICATION;
21 
22 
27 @interface KMA_Player_Meta : NSObject<NSCoding, NSCopying> {
28 }
29 
35 @property (retain,readwrite) NSString *playername;
36 
45 @property (retain,readwrite) NSString *playerversion;
46 
55 @property (assign,readwrite) int screenwidth;
56 
65 @property (assign,readwrite) int screenheight;
66 
67 @end
68 
69 
74 @required
75 
80 
84 -(int) getPosition;
85 
92 -(int) getDuration;
93 
98 -(int) getWidth;
99 
104 -(int) getHeight;
105 
110 -(BOOL) isCastingEnabled;
111 
112 @end
113 
114 
125 @interface KMA_SpringStreams : NSObject {
126 }
127 
131 @property (readwrite) BOOL tracking;
132 
137 @property (readwrite,nonatomic) BOOL debug;
138 
143 @property(assign) NSTimeInterval timeout;
144 
148 @property (readwrite) BOOL offlineMode;
149 
150 //NOT_MultiMarktS
151 #ifndef NOT_UNIVERSAL
152 
165 + (KMA_SpringStreams*) getInstance:(NSString*)site a:(NSString*)app;
166 
167 
168 #endif
169 //NOT_MultiMarktE
170 
171 //MultiMarketS
172 
173 #ifndef MULTI_MARKET
174 
184 + (KMA_SpringStreams*) getInstance:(NSString*)site a:(NSString*)app d:(NSString*)domain;
185 #endif
186 //MultiMarketE
194 + (KMA_SpringStreams*) getInstance;
195 
213 - (KMA_Stream*) track:(NSObject<KMA_StreamAdapter> *)stream atts:(NSDictionary *)atts;
214 
215 //BarbNextUIDS
216 //For more information on this preprocessor directive please check doxyfile.barb
217 #ifndef DOXYGEN_SHOULD_SKIP_THIS
218 
221 -(KMA_Stream*) track:(NSObject<KMA_StreamAdapter> *)stream atts:(NSDictionary *)atts handle:(NSString*) handle;
222 
227 -(NSString *) getNextUID;
228 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
229 
230 //BarbNextUIDE
231 
236 - (void) unload;
237 
243 - (NSMutableDictionary *) getEncrypedIdentifiers;
244 
245 @end
246 
247 
252 @interface KMA_Stream : NSObject<NSCopying> {
253 }
254 
259 - (void) stop;
260 
264 - (NSString*) getUid;
265 
266 @end
267 
268 
269 #if TARGET_OS_IOS
270 
276 @interface KMA_MediaPlayerAdapter : NSObject<KMA_StreamAdapter> {
277 }
278 
284 - (KMA_MediaPlayerAdapter*) adapter:(AVPlayerViewController *)player;
285 
286 @end
287 #endif
288 
289 
The meta object has to be delivered by a KMA_StreamAdapter and contains meta information about the sy...
Definition: KMA_SpringStreams.h:27
BOOL isCastingEnabled()
Method to check if Chromecast sesion is enabled.
Implement this protocol to measure a streaming content.
Definition: KMA_SpringStreams.h:73
NSString *const KMA_STREAMING_DEBUGINTERFACE_NOTIFICATION
The notification name for the debugging purpose, register this notification into the notification cen...
int getPosition()
Returns a positive position on the stream in seconds.
The sensor which exists exactly one time in an application and manage all streaming measurement issue...
Definition: KMA_SpringStreams.h:125
int getHeight()
Returns the height of the video.
int getWidth()
Returns the width of the video.
int getDuration()
Returns the duration of the stream in seconds.
The KMA_Stream object which is returned from the sensor when is called the track method.
Definition: KMA_SpringStreams.h:252
KMA_Player_Meta * getMeta()
Returns the information about the player.