VideoInputBroadcastAdd
From TrillWiki
The videoInputBroadcastAdd function adds a new user to the list of those watching your broadcast video.
Compatibility: 3.0 and higher
Contents |
Syntax
plugin_send(MYGUID,"videoInputBroadcastAdd",video_t *);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
VideoInputBroadcastAdd utilitizes the video_t structure.
struct video_t
{
unsigned int struct_size;
int connection_id;
int window_id;
char *medium;
char *name;
char *location;
char *section;
int initiated;
int ask_confirmation;
/* Video Information
*/
int codec;
int video_width;
int video_height;
int video_depth;
int video_quality;
int video_fps;
int video_data_length;
unsigned char *video_data;
ttkCallback callback;
void *data;
};
- location
- This must be set to 'broadcast.'
- medium
- This must be set to the medium hosting the video broadcast.
- connection_id
- This must be set to the connection ID associated with the video broadcast.
- name
- The contact who is being added to the list of those watching the broadcast.
Return Value
This function returns 0 on success, or a negative value if an error occurred.
Remarks
None.
