#include <plugin.h>
Data Fields | |
void(* | track_changed )(void *data, int track) |
Track changed. | |
void(* | time_changed )(void *data, gavl_time_t time) |
Time changed. | |
void(* | duration_changed )(void *data, gavl_time_t duration) |
Duration changed. | |
void(* | name_changed )(void *data, const char *name) |
Name changed. | |
void(* | metadata_changed )(void *data, const bg_metadata_t *m) |
Metadata changed. | |
void(* | buffer_notify )(void *data, float percentage) |
Buffer callback. | |
int(* | user_pass )(void *data, const char *resource, char **username, char **password) |
Authentication callback. | |
void(* | aspect_changed )(void *data, int stream, int pixel_width, int pixel_height) |
Aspect ratio change callback. | |
void * | data |
Application specific data passed as the first argument to all callbacks. |
Passing the callback structure to the plugin is optional. Futhermore, any of the callback functions is optional (i.e. can be NULL). The plugin might use the callbacks for propagating events.
void(* bg_input_callbacks_s::track_changed)(void *data, int track) |
Track changed.
data | The data member of this bg_input_callbacks_s struct | |
track | The track number starting with 0 |
void(* bg_input_callbacks_s::time_changed)(void *data, gavl_time_t time) |
Time changed.
data | The data member of this bg_input_callbacks_s struct | |
time | The current time |
void(* bg_input_callbacks_s::duration_changed)(void *data, gavl_time_t duration) |
Duration changed.
data | The data member of this bg_input_callbacks_s struct | |
time | The new duration |
void(* bg_input_callbacks_s::name_changed)(void *data, const char *name) |
Name changed.
data | The data member of this bg_input_callbacks_s struct | |
time | The new name |
void(* bg_input_callbacks_s::metadata_changed)(void *data, const bg_metadata_t *m) |
Metadata changed.
data | The data member of this bg_input_callbacks_s struct | |
m | The new metadata |
void(* bg_input_callbacks_s::buffer_notify)(void *data, float percentage) |
Buffer callback.
data | The data member of this bg_input_callbacks_s struct | |
percentage | The buffer fullness (0.0..1.0) |
int(* bg_input_callbacks_s::user_pass)(void *data, const char *resource, char **username, char **password) |
Authentication callback.
data | The data member of this bg_input_callbacks_s struct | |
resource | Name of the resource (e.g. server name) | |
username | Returns the username | |
password | Returns the password |
void(* bg_input_callbacks_s::aspect_changed)(void *data, int stream, int pixel_width, int pixel_height) |
Aspect ratio change callback.
data | The data member of this bg_input_callbacks_s struct | |
stream | Video stream index (starts with 0) | |
pixel_width | New pixel width | |
pixel_height | New pixel height |
Application specific data passed as the first argument to all callbacks.