文档反馈
文档反馈

视频截图

本地视频截图

本地截图,截取自己下一帧待发送的画面

@protocol NIMNetCallManager <NSObject>
/**
 *  本地截图. 截取自己下一帧待发送的画面
 *
 *  @param result 截图结果
 *
 *  @discussion 如果截图失败, result 中 image 为 nil
 */
- (void)snapshotFromLocalVideoCompletion:(void(^)(UIImage * __nullable image))result;
@end
参数 类型 说明
result void(^)(UIImage * __nullable image) 截图结果
__weak typeof(self) weakself = self;
[[NIMAVChatSDK sharedSDK].netCallManager snapshotFromLocalVideoCompletion:^(UIImage * _Nullable image) {
    //截图成功
    if (image) {
    }
    //截图失败
    else
    {
    }
}];
×

反馈成功

非常感谢您的反馈,我们会继续努力做得更好。