SnapshotConfig

  • Flutter

更新时间不可用

视频截图设置。

Dart
class SnapshotConfig {
  const SnapshotConfig({this.filePath, this.position});

  @JsonKey(name: 'filePath')
  final String? filePath;

  @JsonKey(name: 'position')
  final VideoModulePosition? position;

  factory SnapshotConfig.fromJson(Map<String, dynamic> json) =>
      _$SnapshotConfigFromJson(json);

  Map<String, dynamic> toJson() => _$SnapshotConfigToJson(this);
}

属性

参数名描述
filePath

注: 请确保目录存在且可写。

截图的本地保存路径,需精确到文件名及格式,例如:

  • Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg
  • iOS: /App Sandbox/Library/Caches/example.jpg
  • macOS: ~/Library/Logs/example.jpg
  • Android: /storage/emulated/0/Android/data/<package name>/files/example.jpg
position

截图的视频帧在视频链路中的位置。详见 VideoModulePosition。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?