convertToMap method

Map convertToMap()

AVPConfig类型的playConfig转为Map类型

Implementation

Map convertToMap() {
  Map map = {};
  if (this.mMaxAllowedAbrVideoPixelNumber != null) {
    map.addAll({
      "mMaxAllowedAbrVideoPixelNumber": this.mMaxAllowedAbrVideoPixelNumber
    });
  }
  if (this.maxDelayTime != null) {
    map.addAll({"maxDelayTime": this.maxDelayTime});
  }
  if (this.highBufferDuration != null) {
    map.addAll({"highBufferDuration": this.highBufferDuration});
  }
  if (this.startBufferDuration != null) {
    map.addAll({"startBufferDuration": this.startBufferDuration});
  }
  if (this.maxBufferDuration != null) {
    map.addAll({"maxBufferDuration": this.maxBufferDuration});
  }
  if (this.networkTimeout != null) {
    map.addAll({"networkTimeout": this.networkTimeout});
  }
  if (this.networkRetryCount != null) {
    map.addAll({"networkRetryCount": this.networkRetryCount});
  }
  if (this.referer != null) {
    map.addAll({"referer": this.referer});
  }
  if (this.userAgent != null) {
    map.addAll({"userAgent": this.userAgent});
  }
  if (this.httpProxy != null) {
    map.addAll({"httpProxy": this.httpProxy});
  }
  if (this.clearShowWhenStop != null) {
    map.addAll({"clearShowWhenStop": this.clearShowWhenStop});
  }
  if (this.httpHeaders != null) {
    map.addAll({"httpHeaders": this.httpHeaders});
  }
  if (this.enableSEI != null) {
    map.addAll({"enableSEI": this.enableSEI});
  }
  if (this.enableLocalCache != null) {
    map.addAll({"enableLocalCache": this.enableLocalCache});
  }
  if (this.pixelBufferOutputFormat != null) {
    map.addAll({"pixelBufferOutputFormat": this.pixelBufferOutputFormat});
  }
  if (this.liveStartIndex != null) {
    map.addAll({"liveStartIndex": this.liveStartIndex});
  }
  if (this.disableAudio != null) {
    map.addAll({"disableAudio": this.disableAudio});
  }
  if (this.disableVideo != null) {
    map.addAll({"disableVideo": this.disableVideo});
  }
  if (this.positionTimerIntervalMs != null) {
    map.addAll({"positionTimerIntervalMs": this.positionTimerIntervalMs});
  }
  if (this.mMAXBackwardDuration != null) {
    map.addAll({"mMAXBackwardDuration": this.mMAXBackwardDuration});
  }
  if (this.preferAudio != null) {
    map.addAll({"preferAudio": this.preferAudio});
  }
  if (this.enableHttpDns != null) {
    map.addAll({"enableHttpDns": this.enableHttpDns});
  }
  if (this.enableHttp3 != null) {
    map.addAll({"enableHttp3": this.enableHttp3});
  }
  if (this.enableStrictFlvHeader != null) {
    map.addAll({"enableStrictFlvHeader": this.enableStrictFlvHeader});
  }
  if (this.enableStrictAuthMode != null) {
    map.addAll({"enableStrictAuthMode": this.enableStrictAuthMode});
  }
  if (this.enableProjection != null) {
    map.addAll({"enableProjection": this.enableProjection});
  }
  return map;
}