提交 1890aaa5 authored 作者: kongdywang's avatar kongdywang

fix ios progressInterval invalid

上级 00b6981c
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
playConfig.enableAccurateSeek = [args[@"config"][@"enableAccurateSeek"] boolValue]; playConfig.enableAccurateSeek = [args[@"config"][@"enableAccurateSeek"] boolValue];
playConfig.autoRotate = [args[@"config"][@"autoRotate"] boolValue]; playConfig.autoRotate = [args[@"config"][@"autoRotate"] boolValue];
playConfig.smoothSwitchBitrate = [args[@"config"][@"smoothSwitchBitrate"] boolValue]; playConfig.smoothSwitchBitrate = [args[@"config"][@"smoothSwitchBitrate"] boolValue];
playConfig.progressInterval = [args[@"config"][@"progressInterval"] intValue];
playConfig.maxBufferSize = [args[@"config"][@"maxBufferSize"] intValue]; playConfig.maxBufferSize = [args[@"config"][@"maxBufferSize"] intValue];
playConfig.maxPreloadSize = [args[@"config"][@"maxPreloadSize"] intValue]; playConfig.maxPreloadSize = [args[@"config"][@"maxPreloadSize"] intValue];
playConfig.firstStartPlayBufferTime = [args[@"config"][@"firstStartPlayBufferTime"] intValue]; playConfig.firstStartPlayBufferTime = [args[@"config"][@"firstStartPlayBufferTime"] intValue];
...@@ -25,6 +24,11 @@ ...@@ -25,6 +24,11 @@
NSString *preferredResolutionStr = args[@"config"][@"preferredResolution"]; NSString *preferredResolutionStr = args[@"config"][@"preferredResolution"];
playConfig.preferredResolution = [preferredResolutionStr longLongValue]; playConfig.preferredResolution = [preferredResolutionStr longLongValue];
NSTimeInterval progressInerval = [args[@"config"][@"progressInterval"] intValue] / 1000.0;
if(progressInerval > 0) {
playConfig.progressInterval = progressInerval;
}
NSString *overlayKey = args[@"config"][@"overlayKey"]; NSString *overlayKey = args[@"config"][@"overlayKey"];
if(overlayKey != nil && overlayKey.length > 0) { if(overlayKey != nil && overlayKey.length > 0) {
playConfig.overlayKey = overlayKey; playConfig.overlayKey = overlayKey;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论