cn.3tee.avd_SDK-C  3.2.0
mscreen_c.h
浏览该文件的文档.
1 #ifndef RT_Screen_C_H_
2 #define RT_Screen_C_H_
3 
4 #include "common_c.h"
5 
11 typedef struct Screen_Callback {
13 
20  void(*screen_onScreenStatusNotify)(AVDHandle screenHandle, AVDScreenStatus status, const char* winId);
29  void(*screen_onScreenDataNotify)(AVDHandle screenHandle, int level, const char* description, const char* winId);
38  void(*screen_onPublishScreenNotify)(AVDHandle screenHandle, const AVDScreenWindow& win);
47  void(*screen_onUnpublishScreenNotify)(AVDHandle screenHandle, const AVDScreenWindow& win);
49 
57  void(*screen_onSubscribeResult)(AVDHandle screenHandle, Result result, const char* winId);
66  void(*screen_onUnsubscribeResult)(AVDHandle screenHandle, Result result, const char* winId);
75  void(*screen_onPublishScreenResult)(AVDHandle screenHandle, Result result, const char* winId);
84  void(*screen_onUnpublishScreenResult)(AVDHandle screenHandle, Result result, const char* winId);
94  }
96 
98 extern "C" {
113  RT_API_EXPORT Result avd_screen_init(AVDHandle roomHandle, LPScreen_Callback cb, AVDHandle& screenHandle);
119  RT_API_EXPORT Result avd_screen_uninit(AVDHandle screenHandle);
128  RT_API_EXPORT Result avd_screen_publishScreen(AVDHandle screenHandle, const AVDScreenWindow& win);
136  RT_API_EXPORT Result avd_screen_unpublishScreen(AVDHandle screenHandle);
143  RT_API_EXPORT Result avd_screen_swithToScreen(AVDHandle screenHandle, const char* winId);
152  RT_API_EXPORT Result avd_screen_subscribe(AVDHandle screenHandle, const char* winId);
161  RT_API_EXPORT Result avd_screen_unsubscribe(AVDHandle screenHandle, const char* winId);
167  RT_API_EXPORT int avd_screen_getPublishedScreenCount(AVDHandle screenHandle);
175  RT_API_EXPORT Result avd_screen_getPublishedScreen(AVDHandle screenHandle, uint32 index, AVDScreenWindow& win);
185  RT_API_EXPORT Result avd_screen_getPublishedScreens(AVDHandle screenHandle, uint32& ncount, AVDScreenWindow*& wins);
191  RT_API_EXPORT int avd_screen_getSubscribedScreenCount(AVDHandle screenHandle);
199  RT_API_EXPORT Result avd_screen_getSubscribedScreen(AVDHandle screenHandle, uint32 index, AVDScreenWindow& win);
209  RT_API_EXPORT Result avd_screen_getSubscribedScreens(AVDHandle screenHandle, uint32& ncount, AVDScreenWindow*& wins);
210  // render video
222  RT_API_EXPORT Result avd_screen_attachRender(AVDHandle screenHandle, const char* winId, AVDHandle renderHandle);
230  RT_API_EXPORT Result avd_screen_detachRenderWithDeviceId(AVDHandle screenHandle, const char* winId);
237  RT_API_EXPORT Result avd_screen_detachRender(AVDHandle screenHandle, AVDHandle renderHandle);
238  // screen manager
244  RT_API_EXPORT uint32 avd_screen_getScreenWindowCount(AVDHandle screenHandle);
252  RT_API_EXPORT Result avd_screen_getScreenWindow(AVDHandle screenHandle, uint32 index, AVDScreenWindow& win);
262  RT_API_EXPORT Result avd_screen_getScreenWindows(AVDHandle screenHandle, uint32& ncount, AVDScreenWindow*& wins);
263 #if defined(RT_DESKTOP)
264 
276  RT_API_EXPORT Result avd_screen_startAnnotation(AVDHandle screenHandle, const char* screenId);
277 
286  RT_API_EXPORT Result avd_screen_stopAnnotation(AVDHandle screenHandle, const char* screenId);
287 
297  RT_API_EXPORT Result avd_screen_startOtherAnnotation(AVDHandle screenHandle, const char* screenId, AVDHandle renderHandle);
298 
305  RT_API_EXPORT Result avd_screen_setAnnotationBarPosition(AVDHandle screenHandle, int x, int y);
306 #endif
307 
314  RT_API_EXPORT Result avd_screen_updateScreenData(AVDHandle screenHandle, const char* deviceId, int level, const char* description);
315 }
316 
317 #endif//RT_Screen_C_H_
void(* screen_onUnpublishScreenResult)(AVDHandle screenHandle, Result result, const char *winId)
本用户取消发布屏幕窗口异步返回
Definition: mscreen_c.h:84
void(* screen_onScreenStatusNotify)(AVDHandle screenHandle, AVDScreenStatus status, const char *winId)
通知
Definition: mscreen_c.h:20
void(* screen_onPublishScreenResult)(AVDHandle screenHandle, Result result, const char *winId)
本用户发布屏幕窗口异步返回
Definition: mscreen_c.h:75
RT_API_EXPORT Result avd_screen_subscribe(AVDHandle screenHandle, const char *winId)
订阅共屏屏幕窗口视频
RT_API_EXPORT Result avd_screen_getSubscribedScreen(AVDHandle screenHandle, uint32 index, AVDScreenWindow &win)
根据索引获取已订阅的共享窗口信息
RT_API_EXPORT Result avd_screen_init(AVDHandle roomHandle, LPScreen_Callback cb, AVDHandle &screenHandle)
房间中屏幕窗口共享模块接口.
RT_API_EXPORT Result avd_screen_uninit(AVDHandle screenHandle)
反初始屏幕窗口共享模块接口
Screen_Callback()
Definition: mscreen_c.h:85
void(* screen_onUnsubscribeResult)(AVDHandle screenHandle, Result result, const char *winId)
本用户取消订阅屏幕窗口异步返回
Definition: mscreen_c.h:66
RT_API_EXPORT int avd_screen_getPublishedScreenCount(AVDHandle screenHandle)
获取已发布的共享窗口数量
RT_API_EXPORT Result avd_screen_detachRender(AVDHandle screenHandle, AVDHandle renderHandle)
解除某一显示对象与屏幕窗口视频的关联
RT_API_EXPORT Result avd_screen_getSubscribedScreens(AVDHandle screenHandle, uint32 &ncount, AVDScreenWindow *&wins)
获取已订阅的共享窗口信息列表
Definition: common_c.h:65
RT_API_EXPORT Result avd_screen_attachRender(AVDHandle screenHandle, const char *winId, AVDHandle renderHandle)
关联共享的屏幕窗口视频数据和显示对象,在render中显示图像
RT_API_EXPORT Result avd_screen_getScreenWindows(AVDHandle screenHandle, uint32 &ncount, AVDScreenWindow *&wins)
获取可以共享窗口信息列表
void(* screen_onUnpublishScreenNotify)(AVDHandle screenHandle, const AVDScreenWindow &win)
屏幕窗口视频取消发布通知
Definition: mscreen_c.h:47
RT_API_EXPORT Result avd_screen_unsubscribe(AVDHandle screenHandle, const char *winId)
取消订阅共屏屏幕窗口视频
RT_API_EXPORT Result avd_screen_getPublishedScreen(AVDHandle screenHandle, uint32 index, AVDScreenWindow &win)
根据索引获取发布的共享窗口信息
RT_API_EXPORT Result avd_screen_swithToScreen(AVDHandle screenHandle, const char *winId)
共享屏幕窗口视频切换另外一屏幕窗口
void(* screen_onScreenDataNotify)(AVDHandle screenHandle, int level, const char *description, const char *winId)
屏幕窗口数据更改通知
Definition: mscreen_c.h:29
RT_API_EXPORT Result avd_screen_updateScreenData(AVDHandle screenHandle, const char *deviceId, int level, const char *description)
共屏屏幕窗口数据更改
RT_API_EXPORT Result avd_screen_unpublishScreen(AVDHandle screenHandle)
取消发布共享屏幕视频
RT_API_EXPORT int avd_screen_getSubscribedScreenCount(AVDHandle screenHandle)
获取已订阅的共享窗口数量
RT_API_EXPORT Result avd_screen_detachRenderWithDeviceId(AVDHandle screenHandle, const char *winId)
解除屏幕窗口视频的所有显示对象关联
RT_API_EXPORT uint32 avd_screen_getScreenWindowCount(AVDHandle screenHandle)
获取可以共享的窗口数量
RT_API_EXPORT Result avd_screen_publishScreen(AVDHandle screenHandle, const AVDScreenWindow &win)
发布共享屏幕窗口视频
struct Screen_Callback * LPScreen_Callback
房间中屏幕窗口共享模块回调接口.
void(* screen_onSubscribeResult)(AVDHandle screenHandle, Result result, const char *winId)
异步返回
Definition: mscreen_c.h:57
rtc::ScreenStatus AVDScreenStatus
Definition: common_c.h:10
房间中屏幕窗口共享模块回调接口.
Definition: mscreen_c.h:11
RT_API_EXPORT Result avd_screen_getScreenWindow(AVDHandle screenHandle, uint32 index, AVDScreenWindow &win)
根据索引获取可以共享窗口信息
void(* screen_onPublishScreenNotify)(AVDHandle screenHandle, const AVDScreenWindow &win)
屏幕窗口视频发布通知
Definition: mscreen_c.h:38
RT_API_EXPORT Result avd_screen_getPublishedScreens(AVDHandle screenHandle, uint32 &ncount, AVDScreenWindow *&wins)
获取发布的共享窗口信息列表