更新时间:2024-09-13 GMT+08:00
发起投屏
接口功能
该接口用于发起投屏。注意事项:1、该接口在已登录状态下才能调用。
函数原型
startProjection(startProjectionParam: StartProjectionParam, onStartProjectionResult?: (ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void): void
请求参数
| 参数名称 | 是否必选 | 参数类型 | 参数说明 |
|---|---|---|---|
| startProjectionParam | Y | StartProjectionParam | 发起投屏的参数体 |
| onStartProjectionResult | Y | (ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void | 发起投屏回调 |
| 参数名称 | 是否必选 | 参数类型 | 参数说明 |
|---|---|---|---|
| pairCode | Y | string | 配对码 |
| randomNumber | N | string | 随机数,跨企业投屏场景需要携带。 |
| verifyCode | N | string | 验证码,跨企业投屏场景需要携带。 |
返回值
void
回调方法参数说明:
(ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void
| 参数名称 | 参数类型 | 参数说明 |
|---|---|---|
| ret | SDKERR 请参考错误码参考 | 错误码 |
| reason | string | 错误描述 |
| startProjectionResult | StartProjectionResult | 发起投屏结果 |
| 参数名称 | 参数类型 | 参数说明 |
|---|---|---|
| randomNumber | string | 随机数 |
父主题: 会议控制操作对象