Conviva Client Library  2.188.0.0
ccl_notifier_if.h
1 //
2 // Copyright (c) 2014 Conviva. All rights reserved.
3 // CCL - Conviva Client Library
4 //
5 
10 
14 
17 
18 #ifndef CCLNOTIFIER_H
19 #define CCLNOTIFIER_H
20 
21 typedef struct ccl_monitor ccl_notifier_context_t;
22 
24 typedef enum {
25 
28 
31 
34 
37 
40 
44 
46 typedef enum {
56 
58 typedef enum{
66 
69 typedef struct {
70 
75  void (*log) (ccl_notifier_context_t *notifier_context, const char *message);
76 
82  void (*set_state) (ccl_notifier_context_t *notifier_context, ccl_player_state_t new_state);
83 
91  void (*set_stream) (ccl_notifier_context_t *notifier_context, int bitrate_kbps, const char *cdn, const char *resource);
92 
98  void (*set_error) (ccl_notifier_context_t *notifier_context, const char *error_message, int is_fatal);
99 
104  void (*set_duration) (ccl_notifier_context_t *notifier_context, int duration);
105 
110  void (*set_encoded_framerate) (ccl_notifier_context_t *notifier_context, int framerate);
111 
116  void (*set_video_size) (ccl_notifier_context_t *notifier_context, int width, int height);
117 
123  void (*set_seek) (ccl_notifier_context_t *notifier_context, ccl_seek_action_t action, int seektoposition);
124 
129  void (*set_CDNServerIP) (ccl_notifier_context_t *notifier_context, const char *CDNServerIP);
130 
135  void (*set_dropped_frame_total) (ccl_notifier_context_t *notifier_context, int dropped_frame_total);
136 
141  void (*set_dropped_frame_count) (ccl_notifier_context_t *notifier_context, int dropped_frame_count);
142 
147  void (*set_average_bitrate) (ccl_notifier_context_t *notifier_context, int avg_bitrate_kbps);
148 
154  void (*report_langauge_event) (ccl_notifier_context_t *notifier_context, ccl_langauge_event_type_t language_event, const char* language_name);
155 
159  void (*reportAppForegrounded) (ccl_notifier_context_t *notifier_context);
160 
164  void (*reportAppBackgrounded) (ccl_notifier_context_t *notifier_context);
165 
167 
168 #endif /* CCLNOTIFIER_H */
169 
CCL_PLAYER_STATE_STOPPED
@ CCL_PLAYER_STATE_STOPPED
The player is idle.
Definition: ccl_notifier_if.h:27
CCL_PLAYER_SEEK_END
@ CCL_PLAYER_SEEK_END
player end seek event
Definition: ccl_notifier_if.h:50
CCL_PLAYER_STATE_PLAYING
@ CCL_PLAYER_STATE_PLAYING
The player is actually playing content (new frames are rendered, position inside the content changes)...
Definition: ccl_notifier_if.h:30
CCL_PLAYER_SEEK_START
@ CCL_PLAYER_SEEK_START
player start seek event
Definition: ccl_notifier_if.h:48
ccl_langauge_event_type_t
ccl_langauge_event_type_t
Constants for the language change events.
Definition: ccl_notifier_if.h:58
ccl_notifier_t
ccl_notifier_t is used to push video playback data notifications to the Conviva library.
Definition: ccl_notifier_if.h:69
CCL_PLAYER_STATE_PAUSED
@ CCL_PLAYER_STATE_PAUSED
The player is paused by user request.
Definition: ccl_notifier_if.h:36
ccl_player_state_t
ccl_player_state_t
Constants for the valid playing states.
Definition: ccl_notifier_if.h:24
CCL_USER_BUTTON_UP
@ CCL_USER_BUTTON_UP
user button up the position bar
Definition: ccl_notifier_if.h:54
ccl_seek_action_t
ccl_seek_action_t
Constants for the seek actions.
Definition: ccl_notifier_if.h:46
ccl_notifier_context_t
struct ccl_monitor ccl_notifier_context_t
Definition: ccl_notifier_if.h:21
CCL_EVENT_SUBTITLES_LANGUAGE
@ CCL_EVENT_SUBTITLES_LANGUAGE
Subtitle.
Definition: ccl_notifier_if.h:62
CCL_USER_BUTTON_DOWN
@ CCL_USER_BUTTON_DOWN
user button down the position bar
Definition: ccl_notifier_if.h:52
CCL_PLAYER_STATE_UNKNOWN
@ CCL_PLAYER_STATE_UNKNOWN
Use this as a default if the current player state does not fit the aforementioned states.
Definition: ccl_notifier_if.h:42
CCL_EVENT_CLOSED_CAPTIONS_LANGUAGE
@ CCL_EVENT_CLOSED_CAPTIONS_LANGUAGE
Closed Caption.
Definition: ccl_notifier_if.h:64
CCL_PLAYER_STATE_BUFFERING
@ CCL_PLAYER_STATE_BUFFERING
The player is not playing for lack of data.
Definition: ccl_notifier_if.h:33
CCL_EVENT_AUDIO_LANGUAGE
@ CCL_EVENT_AUDIO_LANGUAGE
Audio.
Definition: ccl_notifier_if.h:60
CCL_PLAYER_STATE_NOTMONITORED
@ CCL_PLAYER_STATE_NOTMONITORED
Internal. Do not use.
Definition: ccl_notifier_if.h:39