Video frame

From TrillWiki

Jump to: navigation, search

The video_frame notification is sent to an input stream's callback when a video frame is ready to be sent to the remote user.

Compatibility: 3.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "video_frame", video_t *data, void *userData);

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

Video frame 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; 
};



video_data
The video frame data.
video_data_length
The length of the video_data parameter.


Return Value

Must return 0.

Remarks

None.


Personal tools