VideoSubscriptionOptions

  • Flutter

更新时间不可用

视频订阅设置。

Dart
class VideoSubscriptionOptions {
  const VideoSubscriptionOptions({this.type, this.encodedFrameOnly});

  @JsonKey(name: 'type')
  final VideoStreamType? type;

  @JsonKey(name: 'encodedFrameOnly')
  final bool? encodedFrameOnly;

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

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

属性

参数名描述
type

订阅的视频流类型,默认值为 videoStreamHigh,即订阅视频大流。详见 VideoStreamType。

encodedFrameOnly

是否仅订阅编码后的视频流:

  • true:仅订阅编码后的视频数据(结构化数据),SDK 未对该视频数据做解码及渲染。
  • false:(默认)订阅原始视频数据和编码后的数据。
表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?