You need to enable JavaScript to run this app.
导航
类型详情
最近更新时间:2025.08.22 17:24:27首次发布时间:2025.08.22 17:24:27
复制全文
我的收藏
有用
有用
无用
无用
VeLivePlayerStreamData
class VeLivePlayerStreamData {
  bool? enableABR;
  bool? enableMainBackupSwitch;
  VeLivePlayerResolution? defaultResolution;
  VeLivePlayerFormat? defaultFormat;
  VeLivePlayerProtocol? defaultProtocol;
  List<VeLivePlayerStream>? mainStream;
  List<VeLivePlayerStream>? backupStream;

  VeLivePlayerStreamData({
    this.enableABR,
    this.enableMainBackupSwitch,
    this.defaultResolution,
    this.defaultFormat,
    this.defaultProtocol,
    this.mainStream,
    this.backupStream,
  });
}

播放地址相关配置。

变量说明

enableABR

bool? enableABR;

是否开启自适应码率(Adaptive Bit-Rate,简称 ABR)功能。默认值为 false。取值如下:

  • true:开启;

  • false:关闭。

enableMainBackupSwitch

bool? enableMainBackupSwitch;

是否开启主备流功能。默认值为 false。取值如下:

  • true:开启;

  • false:关闭。

defaultResolution

VeLivePlayerResolution? defaultResolution;

播放器的默认清晰度档位,默认使用原始流清晰度。详见 VeLivePlayerResolution

defaultFormat

VeLivePlayerFormat? defaultFormat;

播放器的默认播放格式,默认值为 FLV。详见 VeLivePlayerFormat

defaultProtocol

VeLivePlayerProtocol? defaultProtocol;

播放器的默认播放传输层协议,默认值为 TCP。详见 VeLivePlayerProtocol

mainStream

List<VeLivePlayerStream>? mainStream;

主路流地址列表。详见 VeLivePlayerStream

backupStream

List<VeLivePlayerStream>? backupStream;

备路流地址列表。详见 VeLivePlayerStream

VeLivePlayerStream
class VeLivePlayerStream {
  String url;
  VeLivePlayerResolution? resolution;
  int? bitrate;
  VeLivePlayerProtocol? protocol;
  VeLivePlayerFormat? format;
  VeLivePlayerStreamType? type;

  VeLivePlayerStream({
    required this.url,
    this.resolution,
    this.bitrate,
    this.protocol,
    this.format,
    this.type,
  });
}

流地址信息。

变量说明

url

String url;

播放地址。

resolution

VeLivePlayerResolution? resolution;

清晰度档位,默认使用原始流清晰度。详见 VeLivePlayerResolution

bitrate

int? bitrate;

播放码率,单位为 kbps。

protocol

VeLivePlayerProtocol? protocol;

传输协议,默认值为 TCP。详见 VeLivePlayerProtocol

format

VeLivePlayerFormat? format;

播放格式,默认值为 FLV。详见 VeLivePlayerFormat

type

VeLivePlayerStreamType? type;

播放流类型为主路或备路,默认为主路流。详见 VeLivePlayerStreamType

VeLivePlayerResolution
enum VeLivePlayerResolution {
  origin, 
  uhd, 
  hd, 
  sd, 
  ld, 
}

直播播放器的清晰度档位。

枚举值

类型说明
origin0原始流。
uhd1UHD 超高清。
hd2HD 高清。
sd3SD 标清。
ld4LD 低清。
VeLivePlayerFormat
enum VeLivePlayerFormat {
  flv, 
  hls, 
  rtm, 
}

直播播放格式。

枚举值

类型说明
flv0FLV 格式。
hls1HLS 格式。
rtm2RTM 格式。
VeLivePlayerProtocol
enum VeLivePlayerProtocol {
  tcp, 
  quic, 
  tls, 
}

直播播放传输协议。

枚举值

类型说明
tcp0TCP 协议。
quic1QUIC 协议。
tls2TLS 协议。
VeLivePlayerStreamType
enum VeLivePlayerStreamType {
  main, 
  backup, 
}

直播播放流类型。

枚举值

类型说明
main0主路流。
backup1备路流。