更新时间:2023-10-12 GMT+08:00
screenShot(截屏)
接口描述
截取对端视频的一帧图像并保存。
注意事项
前置条件:已经建立与OpenEyeCall的WebSocket连接,且处于视频通话中。
方法定义
OpenEyeCall.prototype.screenShot = function(callbacks)
参数描述
|
参数名 |
类型 |
可选/必选 |
描述 |
|---|---|---|---|
|
callbacks |
必选 |
回调方法。 |
回调方法的入参示例:
{
"description" : "tsdk_share_evt_stopsharewindow",
"result" : 0,
"rsp" : 67762
}
使用示例
function startScreenShot(){
console.info("startScreenShot");
this.global_openEye_SDK.openEyeCall.screenShot({ response: startScreenShotResponse })
}
function startScreenShotResponse(data){
console.log(data);
if (data.result == 0) {
console.info("startScreenShot Success");
} else {
console.error("startScreenShot failed");
console.error(data);
}
}
父主题: 音视频呼叫