Kantar Media Streaming Sensor Apple TV
Kantar Media Streaming Measurement Library for Apple TV
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 
19 extern NSString *const KMA_STREAMING_DEBUGINTERFACE_NOTIFICATION;
20 
25 @interface KMA_Player_Meta : NSObject<NSCoding, NSCopying> {
26 }
27 
33 @property (retain,readwrite) NSString *playername;
34 
43 @property (retain,readwrite) NSString *playerversion;
44 
53 @property (assign,readwrite) int screenwidth;
54 
63 @property (assign,readwrite) int screenheight;
64 
65 @end
66 
71 @required
72 
77 
81 -(int) getPosition;
82 
89 -(int) getDuration;
90 
95 -(int) getWidth;
96 
101 -(int) getHeight;
102 
103 @end
104 
115 @interface KMA_SpringStreams : NSObject {
116 }
117 
121 @property (readwrite) BOOL tracking;
122 
127 @property (readwrite,nonatomic) BOOL debug;
128 
133 @property(assign) NSTimeInterval timeout;
134 
138 @property (readwrite) BOOL offlineMode;
139 
140 //NOT_MultiMarktS
141 #ifndef NOT_UNIVERSAL
142 
155 + (KMA_SpringStreams*) getInstance:(NSString*)site a:(NSString*)app;
156 
157 #endif
158 //NOT_MultiMarktE
159 
160 //MultiMarketS
161 
162 #ifndef MULTI_MARKET
163 
173 + (KMA_SpringStreams*) getInstance:(NSString*)site a:(NSString*)app d:(NSString*)domain;
174 
175 #endif
176 //MultiMarketE
177 
178 
179 + (KMA_SpringStreams*) getInstance;
180 
198 - (KMA_Stream*) track:(NSObject<KMA_StreamAdapter> *)stream atts:(NSDictionary *)atts;
199 
200 #ifndef DOXYGEN_SHOULD_SKIP_THIS
201 
204 -(KMA_Stream*) track:(NSObject<KMA_StreamAdapter> *)stream atts:(NSDictionary *)atts handle:(NSString*) handle;
205 
210 -(NSString *) getNextUID;
211 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
212 
213 //BarbNextUIDE
218 - (void) unload;
219 
225 - (NSMutableDictionary *) getEncrypedIdentifiers;
226 
227 @end
228 
233 @interface KMA_Stream : NSObject<NSCopying> {
234 }
235 
240 - (void) stop;
241 
245 - (NSString*) getUid;
246 
247 @end
248 
249 
The meta object has to be delivered by a KMA_StreamAdapter and contains meta information about the sy...
Definition: KMA_SpringStreams.h:25
Implement this protocol to measure a streaming content.
Definition: KMA_SpringStreams.h:70
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:115
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:233
KMA_Player_Meta * getMeta()
Returns the information about the player.