VideoOutputUninitialize

From TrillWiki

Jump to: navigation, search

The videoOutputUninitialize function deallocates a video stream previously set up with videoOutputInitialize.

Compatibility: 3.0 and higher

Contents

Syntax

plugin_send(MYGUID,"videoOutputUninitialize",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

VideoOutputUninitialize 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; 
};



window_id
The window_id associated with this video stream.
medium
If you did not provide window_id, this must be set to the medium hosting the video broadcast.
connection_id
If you did not provide window_id, this must be set to the connection ID associated with the video broadcast.


Return Value

This function returns 0 on success, or a negative value if an error occurred.

Remarks

None.


Personal tools