Conviva Client Library
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 
117  void (*set_seek) (ccl_notifier_context_t *notifier_context, ccl_seek_action_t action, int seektoposition);
118 
123  void (*set_CDNServerIP) (ccl_notifier_context_t *notifier_context, const char *CDNServerIP);
124 
129  void (*set_dropped_frame_total) (ccl_notifier_context_t *notifier_context, int dropped_frame_total);
130 
135  void (*set_average_bitrate) (ccl_notifier_context_t *notifier_context, int avg_bitrate_kbps);
136 
142  void (*report_langauge_event) (ccl_notifier_context_t *notifier_context, ccl_langauge_event_type_t language_event, const char* language_name);
143 
145 
146 #endif /* CCLNOTIFIER_H */
147 
user button down the position bar
Definition: ccl_notifier_if.h:52
ccl_notifier_t is used to push video playback data notifications to the Conviva library.
Definition: ccl_notifier_if.h:69
Subtitle.
Definition: ccl_notifier_if.h:62
ccl_langauge_event_type_t
Constants for the language change events.
Definition: ccl_notifier_if.h:58
The player is paused by user request.
Definition: ccl_notifier_if.h:36
Closed Caption.
Definition: ccl_notifier_if.h:64
The player is not playing for lack of data.
Definition: ccl_notifier_if.h:33
Audio.
Definition: ccl_notifier_if.h:60
player start seek event
Definition: ccl_notifier_if.h:48
Internal. Do not use.
Definition: ccl_notifier_if.h:39
ccl_seek_action_t
Constants for the seek actions.
Definition: ccl_notifier_if.h:46
user button up the position bar
Definition: ccl_notifier_if.h:54
The player is idle.
Definition: ccl_notifier_if.h:27
The player is actually playing content (new frames are rendered, position inside the content changes)...
Definition: ccl_notifier_if.h:30
struct ccl_monitor ccl_notifier_context_t
Definition: ccl_notifier_if.h:21
player end seek event
Definition: ccl_notifier_if.h:50
ccl_player_state_t
Constants for the valid playing states.
Definition: ccl_notifier_if.h:24
Use this as a default if the current player state does not fit the aforementioned states...
Definition: ccl_notifier_if.h:42