Conviva Client Library
 
Loading...
Searching...
No Matches
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
21typedef struct ccl_monitor ccl_notifier_context_t;
22
24typedef enum {
25
28
31
34
37
40
44
46typedef enum {
56
58typedef enum{
66
69typedef 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_langauge_event_type_t
Constants for the language change events.
Definition ccl_notifier_if.h:58
ccl_seek_action_t
Constants for the seek actions.
Definition ccl_notifier_if.h:46
struct ccl_monitor ccl_notifier_context_t
Definition ccl_notifier_if.h:21
ccl_player_state_t
Constants for the valid playing states.
Definition ccl_notifier_if.h:24
@ CCL_EVENT_SUBTITLES_LANGUAGE
Subtitle.
Definition ccl_notifier_if.h:62
@ CCL_EVENT_AUDIO_LANGUAGE
Audio.
Definition ccl_notifier_if.h:60
@ CCL_EVENT_CLOSED_CAPTIONS_LANGUAGE
Closed Caption.
Definition ccl_notifier_if.h:64
@ CCL_USER_BUTTON_UP
user button up the position bar
Definition ccl_notifier_if.h:54
@ CCL_PLAYER_SEEK_END
player end seek event
Definition ccl_notifier_if.h:50
@ CCL_PLAYER_SEEK_START
player start seek event
Definition ccl_notifier_if.h:48
@ CCL_USER_BUTTON_DOWN
user button down the position bar
Definition ccl_notifier_if.h:52
@ CCL_PLAYER_STATE_PAUSED
The player is paused by user request.
Definition ccl_notifier_if.h:36
@ CCL_PLAYER_STATE_STOPPED
The player is idle.
Definition ccl_notifier_if.h:27
@ 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_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_STATE_BUFFERING
The player is not playing for lack of data.
Definition ccl_notifier_if.h:33
@ CCL_PLAYER_STATE_NOTMONITORED
Internal. Do not use.
Definition ccl_notifier_if.h:39
ccl_notifier_t is used to push video playback data notifications to the Conviva library.
Definition ccl_notifier_if.h:69