更新时间:2023-10-12 GMT+08:00
catchVideo(录屏)
接口描述
开始或者结束录屏。
注意事项
前置条件:已经建立与OpenEyeCall的WebSocket连接,且处于视频通话中。
方法定义
OpenEyeCall.prototype.videoCatch = function(value, callbacks)
参数描述
|
参数名 |
类型 |
可选/必选 |
描述 |
|---|---|---|---|
|
value |
bool |
必选 |
true为启动录屏,false为停止录屏。 |
|
callbacks |
必选 |
回调方法。 |
回调方法的入参示例:
{
"description" : "tsdk_share_evt_stopsharewindow",
"result" : 0,
"rsp" : 67763
}
使用示例
function catchVideo(value){
this.global_openEye_SDK.openEyeCall.videoCatch(value, { response: startVideoCatchResponse })
}
function startVideoCatchResponse(data){
console.log(data);
if (data.result == 0) {
console.info("startVideoCatch Success");
} else {
console.error("startVideoCatch failed");
console.error(data);
}
}
父主题: 音视频呼叫