1
+ <page >
2
+ <h1 >ntg_add_incoming_video</h1 >
3
+ <config id =" ADD_INCOMING_VIDEO_DESC" />
4
+ <h3 >Example</h3 >
5
+ <syntax-highlight language =" c" mark =" 14" >
6
+ #include < stdint.h>
7
+ #include "ntgcalls.h"
8
+
9
+ int main() {
10
+ uint32_t uid = ntg_init();
11
+ ...
12
+ int64_t chatID = ...; // Obtain the chat ID
13
+ char* endpoint = ...; // Obtain the endpoint of the incoming video
14
+ ntg_ssrc_group_struct* ssrcGroups = ...; // Obtain the SSRC groups of the incoming video
15
+ int size = ...; // Obtain the size of the SSRC groups array
16
+ uint32_t ssrc_buffer;
17
+ // Initialize the async struct
18
+ ntg_async_struct future;
19
+ ntg_add_incoming_video(uid, chatID, endpoint, ssrcGroups, & ssrc_buffer, & future);
20
+ // Wait for the async operation to complete
21
+ return 0;
22
+ }
23
+ </syntax-highlight >
24
+ <separator />
25
+ <h2 >Details</h2 >
26
+ <category-title noref =" true" >
27
+ <ref ><shi language =" c" >int</shi > <sb src =" method" >ntg_add_incoming_video</sb ></ref >()
28
+ </category-title >
29
+ <subtext >
30
+ <config id =" ADD_INCOMING_VIDEO_DESC2" />
31
+ <br />
32
+ <category >
33
+ <pg-title >PARAMETERS</pg-title >
34
+ <subtext >
35
+ <config id =" ARG_C_UID" />
36
+ <config id =" ARG_C_CHAT_ID" />
37
+ <category-title ><shi language =" c" >char*</shi > <ref ><sb >endpoint</sb ></ref ></category-title >
38
+ <config id =" ENDPOINT_DESC" />
39
+ <category-title ><docs-ref link =" /NTgCalls/Available Types/ntg_ssrc_group_struct" >ntg_ssrc_group_struct</docs-ref ><shi >*</shi > <ref ><sb >ssrcGroups</sb ></ref ></category-title >
40
+ <config id =" SSRC_GROUPS_DESC" />
41
+ <category-title ><shi language =" c" >int</shi > <ref ><sb >size</sb ></ref ></category-title >
42
+ <subtext ><text >The size of the SSRC groups array.</text ></subtext >
43
+ <category-title ><shi language =" c" >uint32_t*</shi > <ref ><sb >buffer</sb ></ref ></category-title >
44
+ <subtext ><text >The buffer to store the SSRC of the incoming video.</text ></subtext >
45
+ <config id =" ARG_ASYNC_STRUCT" />
46
+ </subtext >
47
+ </category >
48
+ <br />
49
+ <category >
50
+ <pg-title >ERROR CODES</pg-title >
51
+ <subtext >
52
+ <config id =" BASE_SYNC_C_EXCEPTION" />
53
+ </subtext >
54
+ <br />
55
+ <pg-title >ASYNC ERROR CODES</pg-title >
56
+ <subtext >
57
+ <config id =" BASE_CONNECTION_EXCEPTIONS" />
58
+ </subtext >
59
+ </category >
60
+ </subtext >
61
+ </page >
0 commit comments