ZegoCDNConfig class

CDN 配置对象

包括 CDN 的 URL 以及鉴权参数字符串

Constructors

ZegoCDNConfig(String url, {String? authParam, String? protocol, String? quicVersion, ZegoHttpDNSType? httpdns, int? quicConnectMode})

Properties

authParam ↔ String?
URL 的鉴权参数。若需要使用请联系 ZEGO 技术支持,否则可以忽略此参数(可以留空或设置为空字符串)。
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
httpdns ZegoHttpDNSType?
自定义使用的 httpdns 服务。目前仅支持拉流时使用该功能。
read / write
protocol ↔ String?
URL 支持的协议,可选值为 "tcp" 和 "quic",若要使用多个,用英文的逗号分割,按顺序尝试。若需要使用请联系 ZEGO 技术支持,否则可以忽略此参数(可以留空或设置为空字符串)。
read / write
quicConnectMode ↔ int?
QUIC 建立链接模式,若为1 则会优先使用quic 0 rtt 去建立链接,否则正常建立链接。如果 protocol 有 QUIC 协议,此值生效。
read / write
quicVersion ↔ String?
QUIC 版本。如果 protocol 有 QUIC 协议,需要填写该信息。如果有多个版本号,用英文的逗号分割。若需要使用请联系 ZEGO 技术支持,否则可以忽略此参数(可以留空或设置为空字符串)。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
url ↔ String
CDN 的 URL
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited