版本支持: v1.0.0+
接口概述: 开启内容共享
接口定义:
void StartContentSharing(bool withDesktopAudio)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
withDesktopAudio | bool | 是 | 无 | true,同时共享音频 |
版本支持: v1.0.0+
接口概述: 停止内容共享
接口定义:
void StopContentSharing()
版本支持: v1.0.0+
接口概述: 开启媒体文件共享
接口定义:
void StartMediaFileSharing(string filePath, bool enableAnnotation = true)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
filePath | string | 是 | 无 | 媒体文件全路径 |
enableAnnotation | bool | 否 | true | 是否可标记 |
版本支持: v1.0.0+
接口概述: 停止媒体文件共享
接口定义:
void StopMediaFileSharing()
版本支持: v1.0.0+
接口概述: 媒体文件初始化设置
接口定义:
void MediaFilePrepare(string fileName, float volume)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
fileName | string | 是 | 无 | 文件路径 |
volume | float | 是 | 无 | 音量 |
版本支持: v1.0.0+
接口概述: 开始分享
接口定义:
void MediaFileStart()
版本支持: v1.0.0+
接口概述: 暂停分享
接口定义:
void MediaFilePause()
版本支持: v1.0.0+
接口概述: 停止分享
接口定义:
void MediaFileStop()
版本支持: v1.0.0+
接口概述: 设置指定时间
接口定义:
void MediaFileSeek(Int64 position)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
position | Int64 | 是 | 无 | 0~100进度 |
版本支持: v1.0.0+
接口概述: 设置分享时的媒体音量
接口定义:
void MediaFileAdjustVolume(float volume)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
volume | float | 是 | 无 | 0.0~1.0音量 |
版本支持: v1.0.0+
接口概述: 释放媒体文件共享资源
接口定义:
void MediaFileRelease()
版本支持: v1.0.0+
接口概述: 获取媒体显示控件
接口定义:
FrameworkElement GetVideoElement4MediaFile()
返回值:
媒体显示控件
版本支持: v1.0.0+
接口概述: 获取媒体文件信息
接口定义:
SDKMediaFileInfo GetMediaFileInfo(string fileName)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
fileName | string | 是 | 无 | 文件绝对路径 |
返回值:
媒体文件信息
版本支持: v1.0.0+
接口概述: 选择共享的桌面
接口定义:
void SelectMonitorToShare(string monitorName)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
monitorName | string | 是 | 无 | 共享桌面名称 |
版本支持: v1.0.0+
接口概述: 开始抓屏
接口定义:
void StartScreenCapture()
版本支持: v1.0.0+
接口概述: 停止抓屏
接口定义:
void StopScreenCapture()
版本支持: v1.0.0+
接口概述: 暂停抓屏
接口定义:
void PauseScreenCapture()
版本支持: v1.0.0+
接口概述: 获取应用列表信息
接口定义:
SDKAppInfoManaged[] GetTopLevelAppList()
返回值:
应用列表信息数组
版本支持: v1.0.0+
接口概述: 选择要分享的appwindow
接口定义:
bool SelectAppWindowToShare(IntPtr hAppMain)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hAppMain | IntPtr | 是 | 无 | 要分享的窗口句柄 |
返回值:
是否选择成功
版本支持: v1.0.0+
接口概述: 是否忽略遮盖的Window
接口定义:
void AppSharingIgnoreCoveredWindow(IntPtr hCoverdWnd, bool bIgnore)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hCoverdWnd | IntPtr | 是 | 无 | 遮盖的窗口句柄 |
bIgnore | bool | 是 | 无 | true忽略,false不忽略 |
版本支持: v1.0.0+
接口概述: 获取窗口可见区域
接口定义:
void GetAppWindowVisibleArea(IntPtr hAppMain, ref System.Drawing.Rectangle rect)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hAppMain | IntPtr | 是 | 无 | 窗体句柄 |
rect | ref System.Drawing.Rectangle | 是 | 无 | 矩形位置和大小 |
版本支持: v1.0.0+
接口概述: 获取top窗口
接口定义:
IntPtr GetAppTopmostWindow(IntPtr hAppMain)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hAppMain | IntPtr | 是 | 无 | 窗体句柄 |
返回值:
top窗口句柄
版本支持: v1.0.0+
接口概述: 获取正在分享的window句柄
接口定义:
IntPtr GetAppSharingWnd()
返回值:
正在分享的window句柄
版本支持: v1.0.0+
接口概述: 设置不忽略的句柄
接口定义:
void SetNotIgnoreCaptureWnd(IntPtr hwnd)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hwnd | IntPtr | 是 | 无 | 句柄 |
版本支持: v1.0.0+
接口概述: 设置忽略的句柄
接口定义:
void SetIgnoreCaptureWnd(IntPtr hwnd)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
hwnd | IntPtr | 是 | 无 | 句柄 |
版本支持: v1.0.0+
接口概述: 设置能否区域分享
接口定义:
void EnableRegionalCapture(bool enable)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
enable | bool | 是 | 无 | true能区域共享,false不能区域共享 |
版本支持: v1.0.0+
接口概述: 更新分享区域
接口定义:
void UpdateRegionalCaptureArea(System.Drawing.Rectangle rc)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
rc | System.Drawing.Rectangle | 是 | 无 | 共享区域矩形信息 |
版本支持: v1.0.0+
接口概述: 设置是否使用流畅模式
接口定义:
void EnableFluentMode(bool enable)
接口参数:
参数名 | 类型 | 必填 | 默认值 | 描述 |
enable | bool | 是 | 无 | true,使用流畅模式 |