Conviva Client Library
Data Fields
ccl_notifier_t Struct Reference

ccl_notifier_t is used to push video playback data notifications to the Conviva library. More...

#include <ccl_notifier_if.h>

Data Fields

void(* log )(ccl_notifier_context_t *notifier_context, const char *message)
 Logs a message related to video player monitoring through Conviva's logging system. More...
 
void(* set_state )(ccl_notifier_context_t *notifier_context, ccl_player_state_t new_state)
 Notify Conviva of a change in player state. More...
 
void(* set_stream )(ccl_notifier_context_t *notifier_context, int bitrate_kbps, const char *cdn, const char *resource)
 Notify Conviva of a change in the peak bitrate, CDN or resource. More...
 
void(* set_error )(ccl_notifier_context_t *notifier_context, const char *error_message, int is_fatal)
 Notify Conviva of a video player error. More...
 
void(* set_duration )(ccl_notifier_context_t *notifier_context, int duration)
 Notify Conviva of the duration (length) of the current video content in seconds. More...
 
void(* set_encoded_framerate )(ccl_notifier_context_t *notifier_context, int framerate)
 Notify Conviva of the encoded framerate of the current video content. In frames per second. More...
 
void(* set_seek )(ccl_notifier_context_t *notifier_context, ccl_seek_action_t action, int seektoposition)
 Notify Conviva of the seek event. More...
 
void(* set_CDNServerIP )(ccl_notifier_context_t *notifier_context, const char *CDNServerIP)
 Notify Conviva of a change in the CDN Server IP. More...
 
void(* set_dropped_frame_total )(ccl_notifier_context_t *notifier_context, int dropped_frame_total)
 Notify Conviva of the cumulative dropped video frames since stream start. More...
 
void(* set_average_bitrate )(ccl_notifier_context_t *notifier_context, int avg_bitrate_kbps)
 Notify Conviva of a change in average bitrate currently used by the video player. More...
 
void(* report_langauge_event )(ccl_notifier_context_t *notifier_context, ccl_langauge_event_type_t language_event, const char *language_name)
 Notify Conviva of a langauge change in audio/subtitle/closed caption. More...
 

Detailed Description

ccl_notifier_t is used to push video playback data notifications to the Conviva library.

Note
notifier_context is supplied by ccl_player_t::start_monitoring() during ccl_session_player_attach().

Field Documentation

◆ log

void(* ccl_notifier_t::log) (ccl_notifier_context_t *notifier_context, const char *message)

Logs a message related to video player monitoring through Conviva's logging system.

Parameters
notifier_contextNotifier context for the notification.
messageMessage to be logged.

◆ report_langauge_event

void(* ccl_notifier_t::report_langauge_event) (ccl_notifier_context_t *notifier_context, ccl_langauge_event_type_t language_event, const char *language_name)

Notify Conviva of a langauge change in audio/subtitle/closed caption.

Parameters
notifier_contextNotifier context for the notification.
language_eventType of the language change event
language_nameName of the langauge

◆ set_average_bitrate

void(* ccl_notifier_t::set_average_bitrate) (ccl_notifier_context_t *notifier_context, int avg_bitrate_kbps)

Notify Conviva of a change in average bitrate currently used by the video player.

Parameters
notifier_contextNotifier context for the notification.
avg_bitrate_kbpsNew average bitrate in Kbps..

◆ set_CDNServerIP

void(* ccl_notifier_t::set_CDNServerIP) (ccl_notifier_context_t *notifier_context, const char *CDNServerIP)

Notify Conviva of a change in the CDN Server IP.

Parameters
notifier_contextNotifier context for the notification.
CDNServerIPNew CDN Edge Server IP used to serve video stream.

◆ set_dropped_frame_total

void(* ccl_notifier_t::set_dropped_frame_total) (ccl_notifier_context_t *notifier_context, int dropped_frame_total)

Notify Conviva of the cumulative dropped video frames since stream start.

Parameters
notifier_contextNotifier context for the notification.
dropped_frame_totalDropped video frame total since stream start.

◆ set_duration

void(* ccl_notifier_t::set_duration) (ccl_notifier_context_t *notifier_context, int duration)

Notify Conviva of the duration (length) of the current video content in seconds.

Parameters
notifier_contextNotifier context for the notification.
durationDuration of the video context in seconds.

◆ set_encoded_framerate

void(* ccl_notifier_t::set_encoded_framerate) (ccl_notifier_context_t *notifier_context, int framerate)

Notify Conviva of the encoded framerate of the current video content. In frames per second.

Parameters
notifier_contextNotifier context for the notification.
framerateEncoded frame rate of the video content in frames per second.

◆ set_error

void(* ccl_notifier_t::set_error) (ccl_notifier_context_t *notifier_context, const char *error_message, int is_fatal)

Notify Conviva of a video player error.

Parameters
notifier_contextNotifier context for the notification.
error_messageError message.
is_fatalWhether the error could prevent video playback altogether. When in doubt, set to true.

◆ set_seek

void(* ccl_notifier_t::set_seek) (ccl_notifier_context_t *notifier_context, ccl_seek_action_t action, int seektoposition)

Notify Conviva of the seek event.

Parameters
notifier_contextNotifier context for the notification.
actionSeek action
seektopositionseek to position

◆ set_state

void(* ccl_notifier_t::set_state) (ccl_notifier_context_t *notifier_context, ccl_player_state_t new_state)

Notify Conviva of a change in player state.

Parameters
notifier_contextNotifier context for the notification.
new_stateThe new player state.
See also
ccl_player_state_t

◆ set_stream

void(* ccl_notifier_t::set_stream) (ccl_notifier_context_t *notifier_context, int bitrate_kbps, const char *cdn, const char *resource)

Notify Conviva of a change in the peak bitrate, CDN or resource.

Parameters
notifier_contextNotifier context for the notification.
bitrate_kbpsNew peak bitrate currently used by the video player.
cdnNew CDN used to serve video streams.
resourceNew resource used to serve video streams.
Note
Use -1 / NULL to keep maintain previous values.