takeRemoteSnapshot abstract method

CancelableOperation<RemoteSnapshot> takeRemoteSnapshot(
  1. RemoteStreamKey streamKey,
  2. String filePath
)

截取远端视频画面

streamKey:截图的远端视频流信息

filePath:远端截图保存路径

方法调用成功则收到 RemoteSnapshot 对象,调用失败则返回值如下:

  • -100:调用异常;
  • -101:未返回 taskId;
  • -102:文件写入失败;
  • -103:图片格式错误。

Implementation

CancelableOperation<RemoteSnapshot> takeRemoteSnapshot(
  RemoteStreamKey streamKey,
  String filePath,
);