CISVideoAnalyticsProtocol
@protocol CISVideoAnalyticsProtocol <CISStreamAnalyticsProtocol>
/**
* Set content metadata for an existing monitoring session.
* @param contentInfo Content meta data. Please refer "METADATA CONSTANTS" section defined in CSSConstants.h for possible keys.
*/
- (void) setContentInfo:(NSDictionary*)contentInfo;
/**
* Set player metadata for an existing monitoring session.
* @param playerInfo Content meta data.Please refer "PLAYER INFO CONSTANTS" section defined in CSSConstants.h for possible keys.
*/
- (void) setPlayerInfo:(NSDictionary*)playerInfo;
/**
* Reports playback start.
* @param contentInfo Content meta data.Please refer "METADATA CONSTANTS" section defined in CSSConstants.h for possible keys.
*/
- (void) reportPlaybackRequested:(nullable NSDictionary*)contentInfo;
/**
* Reports playback end.
*/
- (void) reportPlaybackEnded;
/**
* Reports playback faiulure.
* @param errorMessage Error message.
* @param contentInfo Content meta data.Please refer "METADATA CONSTANTS" section defined in CSSConstants.h for possible keys.
*/
- (void) reportPlaybackFailed:(NSString*)errorMessage contentInfo:(nullable NSDictionary*)contentInfo;
/**
* Reports an error for this monitoring session.
* @param errorMessage The error message to be reported.
* @param severity The severity of the error.
*/
- (void) reportPlaybackError:(NSString*)errorMessage errorSeverity:(ErrorSeverity)severity;
/**
* Send a playback event to Conviva.
* @param eventName Name of the custom event.
* @param attributes A dictionary of key-value pairs associated with the event.
*/
- (void) reportPlaybackEvent:(NSString*)eventName withAttributes:(nullable NSDictionary*)attributes;
/**
* Notify Conviva that an ad is about to start for the monitoring session.
* @param adPlayer Whether the ad is played by the same player as the original video content.
* @param adType Whether the ad is embedded in the content stream.
* @param adBreakInfo Ad Break info.Please refer "AD BREAK CONSTANTS" section defined in CSSConstants.h for possible keys.
*/
- (void) reportAdBreakStarted:(AdPlayer)adPlayer adType:(AdTechnology)adType adBreakInfo:(NSDictionary*)adBreakInfo;
/**
* Notify Conviva that an ad has ended for the monitoring session.
*/
- (void) reportAdBreakEnded;
/**
* If customer uses modules developed conviva for AVPlayer,AVQueuePlayer and Brightcove, shall use this method to pass player instance to enable auto
* detecction of required metrics.
* @param player Player object(Support AVPlayer,AVQueuePlayer and Brightcove).
*/
- (void) setPlayer:(id)player;
/**
* Reports playback metric.
* @param key Metric key.Please refer "PLAYBACK METRIC KEYS" section defined in CSSConstants.h for all possible keys.
* @param value Metric value.
*/
- (void) reportPlaybackMetric:(NSString*)key value:(id)value;
/**
* Set ad analytics object on video analytics to enable seamlessly passing common data from video analytics to ad analytcis.
* @param adAnalytics Ad analytics.
*/
- (void) setAdAnalytics:(CISAdAnalytics)adAnalytics;
@end
Undocumented
-
Set content metadata for an existing monitoring session.
Declaration
Objective-C
- (void)setContentInfo:(nonnull NSDictionary *)contentInfo;Swift
func setContentInfo(_ contentInfo: [AnyHashable : Any])Parameters
contentInfoContent meta data. Please refer “METADATA CONSTANTS” section defined in CSSConstants.h for possible keys.
-
Set player metadata for an existing monitoring session.
Declaration
Objective-C
- (void)setPlayerInfo:(nonnull NSDictionary *)playerInfo;Swift
func setPlayerInfo(_ playerInfo: [AnyHashable : Any])Parameters
playerInfoContent meta data.Please refer “PLAYER INFO CONSTANTS” section defined in CSSConstants.h for possible keys.
-
Reports playback start.
Declaration
Objective-C
- (void)reportPlaybackRequested:(nullable NSDictionary *)contentInfo;Swift
func reportPlaybackRequested(_ contentInfo: [AnyHashable : Any]?)Parameters
contentInfoContent meta data.Please refer “METADATA CONSTANTS” section defined in CSSConstants.h for possible keys.
-
Reports playback end.
Declaration
Objective-C
- (void)reportPlaybackEnded;Swift
func reportPlaybackEnded() -
Reports playback faiulure.
Declaration
Objective-C
- (void)reportPlaybackFailed:(nonnull NSString *)errorMessage contentInfo:(nullable NSDictionary *)contentInfo;Swift
func reportPlaybackFailed(_ errorMessage: String, contentInfo: [AnyHashable : Any]?)Parameters
errorMessageError message.
contentInfoContent meta data.Please refer “METADATA CONSTANTS” section defined in CSSConstants.h for possible keys.
-
Reports an error for this monitoring session.
Declaration
Objective-C
- (void)reportPlaybackError:(nonnull NSString *)errorMessage errorSeverity:(ErrorSeverity)severity;Swift
func reportPlaybackError(_ errorMessage: String, errorSeverity severity: ErrorSeverity)Parameters
errorMessageThe error message to be reported.
severityThe severity of the error.
-
Send a playback event to Conviva.
Declaration
Objective-C
- (void)reportPlaybackEvent:(nonnull NSString *)eventName withAttributes:(nullable NSDictionary *)attributes;Swift
func reportPlaybackEvent(_ eventName: String, withAttributes attributes: [AnyHashable : Any]? = nil)Parameters
eventNameName of the custom event.
attributesA dictionary of key-value pairs associated with the event.
-
Notify Conviva that an ad is about to start for the monitoring session.
Declaration
Objective-C
- (void)reportAdBreakStarted:(AdPlayer)adPlayer adType:(AdTechnology)adType adBreakInfo:(nonnull NSDictionary *)adBreakInfo;Swift
func reportAdBreakStarted(_ adPlayer: AdPlayer, adType: AdTechnology, adBreakInfo: [AnyHashable : Any])Parameters
adPlayerWhether the ad is played by the same player as the original video content.
adTypeWhether the ad is embedded in the content stream.
adBreakInfoAd Break info.Please refer “AD BREAK CONSTANTS” section defined in CSSConstants.h for possible keys.
-
Notify Conviva that an ad has ended for the monitoring session.
Declaration
Objective-C
- (void)reportAdBreakEnded;Swift
func reportAdBreakEnded() -
If customer uses modules developed conviva for AVPlayer,AVQueuePlayer and Brightcove, shall use this method to pass player instance to enable auto detecction of required metrics.
Declaration
Objective-C
- (void)setPlayer:(nonnull id)player;Swift
func setPlayer(_ player: Any)Parameters
playerPlayer object(Support AVPlayer,AVQueuePlayer and Brightcove).
-
Reports playback metric.
Declaration
Objective-C
- (void)reportPlaybackMetric:(nonnull NSString *)key value:(nonnull id)value;Swift
func reportPlaybackMetric(_ key: String, value: Any)Parameters
keyMetric key.Please refer “PLAYBACK METRIC KEYS” section defined in CSSConstants.h for all possible keys.
valueMetric value.
-
Set ad analytics object on video analytics to enable seamlessly passing common data from video analytics to ad analytcis.
Declaration
Objective-C
- (void)setAdAnalytics:(nonnull CISAdAnalytics)adAnalytics;Swift
func setAdAnalytics(_ adAnalytics: CISAdAnalytics)Parameters
adAnalyticsAd analytics.
CISVideoAnalyticsProtocol Protocol Reference