SnapshotConfig
用于配置截图功能。
Java
public class SnapshotConfig {
public String filePath = null;
public Constants.VideoModulePosition position = Constants.VideoModulePosition.VIDEO_MODULE_POSITION_PRE_ENCODER;
}
filePath
截图文件的本地路径(包括文件扩展名)。例如:Android:
/storage/emulated/0/Android/data/<package name>/files/example.jpg。 信息
请确保指定路径存在且具有可写权限。
position
截图视频帧在视频处理链中的位置,详见 VideoModulePosition。具体取值取决于调用
takeSnapshot 或 takeSnapshotEx 时传入的 uid: uid为0:position支持2、4和8。uid不为0:position仅支持2。