Screen Sharing (Remote Desktop) has been added to anychat since version.
Currently, anychat for Windows SDK and anychat for Web SDK are supported to transmit desktop information from PCs to PCs, Web browsers, mobile phones (Android, IOS), and tablets.
Function implementation principle:
1. The new version has a built-in native screen camera device;
2. When you switch to this device, you can achieve Desktop Sharing and collect and transmit local desktop images;
3. The video that other users see is a desktop image, not a camera video;
4. During local desktop data collection, a green border is displayed around the mouse, indicating the size of the area shared by the desktop;
5. You can adjust the area size and video quality of desktop sharing by adjusting the local collection resolution and bit rate;
650) This. width = 650; "id =" aimg_395 "src =" http://bbs.anychat.cn/data/attachment/forum/201403/12/133731m63uwswwbdb3iyuu.jpg "class =" zoom "width =" 311 "alt =" 133731m63uwswwbdb3iyuu.jpg "/>
650) This. width = 650; "id =" aimg_396 "src =" http://bbs.anychat.cn/data/attachment/forum/201403/12/133737q8zby3zfzgdjybzs.jpg "class =" zoom "width =" 600 "alt =" 133737q8zby3zfzgdjybzs.jpg "/>
To enable the desktop sharing function (disabled by default), you can use the following code:
// Brac_so_coresdk_screencameractrl 131 // <desktop sharing Function Control (parameter: int type, 0 disabled [Default], 1 Enabled)
DWORD benablescreencamera = 1;
Brac_setsdkoption (brac_so_coresdk_screencameractrl, (char *) & benablescreencamera, sizeof (DWORD ));
Copy code
To disable the desktop sharing function, you can use either of the following two methods:
1. Delete the desktop sharing component under the application directory: brscreensource. Ax;
2. Disable the service through the API:
// Brac_so_coresdk_screencameractrl 131 // <desktop sharing Function Control (parameter: int type, 0 disabled [Default], 1 Enabled)
DWORD benablescreencamera = 0;
Brac_setsdkoption (brac_so_coresdk_screencameractrl, (char *) & benablescreencamera, sizeof (DWORD ));
Copy code