convertAt static method
Map类型的playConfig转为AVPConfig类型
Implementation
static AVPConfig convertAt(Map map) {
AVPConfig config = AVPConfig();
config.mMaxAllowedAbrVideoPixelNumber =
map["mMaxAllowedAbrVideoPixelNumber"];
config.maxDelayTime = map["maxDelayTime"];
config.highBufferDuration = map["highBufferDuration"];
config.startBufferDuration = map["startBufferDuration"];
config.maxBufferDuration = map["maxBufferDuration"];
config.networkTimeout = map["networkTimeout"];
config.networkRetryCount = map["networkRetryCount"];
config.maxProbeSize = map["maxProbeSize"];
config.referer = map["referer"];
config.userAgent = map["userAgent"];
config.httpProxy = map["httpProxy"];
config.clearShowWhenStop = map["clearShowWhenStop"];
config.httpHeaders = map["httpHeaders"];
config.enableSEI = map["enableSEI"];
config.enableLocalCache = map["enableLocalCache"];
config.pixelBufferOutputFormat = map["pixelBufferOutputFormat"];
config.liveStartIndex = map["liveStartIndex"];
config.disableAudio = map["disableAudio"];
config.disableVideo = map["disableVideo"];
config.positionTimerIntervalMs = map["positionTimerIntervalMs"];
config.mMAXBackwardDuration = map["mMAXBackwardDuration"];
config.preferAudio = map["preferAudio"];
config.enableHttp3 = map["enableHttp3"];
config.enableStrictFlvHeader = map["enableStrictFlvHeader"];
config.enableStrictAuthMode = map["enableStrictAuthMode"];
config.enableProjection = map["enableProjection"];
return config;
}