Commit 8478a9d8 authored by Hanruisong's avatar Hanruisong
Browse files

更新到 4.9.1

1.常见问题添加cocoapods集成编译报错的解决方案
parent fe6527d3
No preview for this file type
......@@ -401,9 +401,9 @@
B57CC7BE18E2E575001A1696 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B57CC7BD18E2E575001A1696 /* CoreLocation.framework */; };
B57CC7C018E2E581001A1696 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B57CC7BF18E2E581001A1696 /* AVFoundation.framework */; };
B88562A41DED1AC8008D1763 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B88562A31DED1AC8008D1763 /* SystemConfiguration.framework */; };
DD3C6C74251C378500AE4039 /* CCVodSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD3C6C72251C378500AE4039 /* CCVodSDK.framework */; };
DD3C6C76251C382800AE4039 /* HDBaseUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD3C6C73251C378500AE4039 /* HDBaseUtils.framework */; };
DD3C6C77251C382800AE4039 /* HDBaseUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD3C6C73251C378500AE4039 /* HDBaseUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DD11422C251DE391005610EC /* CCVodSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD11422A251DE390005610EC /* CCVodSDK.framework */; };
DD11422E251DE399005610EC /* HDBaseUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD11422B251DE390005610EC /* HDBaseUtils.framework */; };
DD11422F251DE399005610EC /* HDBaseUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD11422B251DE390005610EC /* HDBaseUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DD54280A250B55AB0097614C /* icon_ad_mute_select@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542806250B55AA0097614C /* icon_ad_mute_select@2x.png */; };
DD54280B250B55AB0097614C /* icon_ad_mute@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542807250B55AB0097614C /* icon_ad_mute@3x.png */; };
DD54280C250B55AB0097614C /* icon_ad_mute@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542808250B55AB0097614C /* icon_ad_mute@2x.png */; };
......@@ -417,7 +417,7 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
DD3C6C77251C382800AE4039 /* HDBaseUtils.framework in Embed Frameworks */,
DD11422F251DE399005610EC /* HDBaseUtils.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
......@@ -981,8 +981,8 @@
B57CC7BD18E2E575001A1696 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
B57CC7BF18E2E581001A1696 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
B88562A31DED1AC8008D1763 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
DD3C6C72251C378500AE4039 /* CCVodSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CCVodSDK.framework; sourceTree = "<group>"; };
DD3C6C73251C378500AE4039 /* HDBaseUtils.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HDBaseUtils.framework; sourceTree = "<group>"; };
DD11422A251DE390005610EC /* CCVodSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CCVodSDK.framework; sourceTree = "<group>"; };
DD11422B251DE390005610EC /* HDBaseUtils.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HDBaseUtils.framework; sourceTree = "<group>"; };
DD542806250B55AA0097614C /* icon_ad_mute_select@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute_select@2x.png"; sourceTree = "<group>"; };
DD542807250B55AB0097614C /* icon_ad_mute@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute@3x.png"; sourceTree = "<group>"; };
DD542808250B55AB0097614C /* icon_ad_mute@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute@2x.png"; sourceTree = "<group>"; };
......@@ -994,7 +994,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DD3C6C76251C382800AE4039 /* HDBaseUtils.framework in Frameworks */,
DD11422E251DE399005610EC /* HDBaseUtils.framework in Frameworks */,
048AD12822CDCE83008C8911 /* libxml2.tbd in Frameworks */,
043441FF225EF2BB003F7EC1 /* CoreServices.framework in Frameworks */,
352CBDD91FD6980C00D24715 /* AudioToolbox.framework in Frameworks */,
......@@ -1002,7 +1002,7 @@
B88562A41DED1AC8008D1763 /* SystemConfiguration.framework in Frameworks */,
B57CC7C018E2E581001A1696 /* AVFoundation.framework in Frameworks */,
B57CC7BE18E2E575001A1696 /* CoreLocation.framework in Frameworks */,
DD3C6C74251C378500AE4039 /* CCVodSDK.framework in Frameworks */,
DD11422C251DE391005610EC /* CCVodSDK.framework in Frameworks */,
B57CC7BC18E2E569001A1696 /* CoreMedia.framework in Frameworks */,
B547EC4C18E033FB00BC980C /* CoreGraphics.framework in Frameworks */,
B547EC4E18E033FB00BC980C /* UIKit.framework in Frameworks */,
......@@ -1833,7 +1833,7 @@
isa = PBXGroup;
children = (
044C66A122D46DAE0032396F /* Demo.entitlements */,
DD3C6C71251C378500AE4039 /* SDK */,
DD114229251DE390005610EC /* SDK */,
0434420D225F0EDD003F7EC1 /* Classes */,
B547EC5818E033FB00BC980C /* DWAppDelegate.h */,
B547EC5918E033FB00BC980C /* DWAppDelegate.m */,
......@@ -1860,11 +1860,11 @@
name = "Supporting Files";
sourceTree = "<group>";
};
DD3C6C71251C378500AE4039 /* SDK */ = {
DD114229251DE390005610EC /* SDK */ = {
isa = PBXGroup;
children = (
DD3C6C72251C378500AE4039 /* CCVodSDK.framework */,
DD3C6C73251C378500AE4039 /* HDBaseUtils.framework */,
DD11422A251DE390005610EC /* CCVodSDK.framework */,
DD11422B251DE390005610EC /* HDBaseUtils.framework */,
);
path = SDK;
sourceTree = "<group>";
......@@ -1880,7 +1880,6 @@
B547EC4318E033FB00BC980C /* Frameworks */,
B547EC4418E033FB00BC980C /* Resources */,
046FF38A2468F48100AB4A98 /* Embed Frameworks */,
DD3C6BC72519D90000AE4039 /* ShellScript */,
);
buildRules = (
);
......@@ -2183,26 +2182,6 @@
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
DD3C6BC72519D90000AE4039 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nAPP_PATH=\"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\"\n\nfind \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK \ndo \nFRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK/Info.plist\" CFBundleExecutable) \nFRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME\" \necho \"Executable is $FRAMEWORK_EXECUTABLE_PATH\" \n \nEXTRACTED_ARCHS=() \n \nfor ARCH in $ARCHS \ndo \necho \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\" \nlipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\" \nEXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\") \ndone \n\necho \"Merging extracted architectures: ${ARCHS}\" \nlipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\" \nrm \"${EXTRACTED_ARCHS[@]}\" \n \necho \"Replacing original executable with thinned version\" \nrm \"$FRAMEWORK_EXECUTABLE_PATH\" \nmv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\" \n \ndone\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
B547EC4218E033FB00BC980C /* Sources */ = {
isa = PBXSourcesBuildPhase;
......
......@@ -25,7 +25,6 @@
{
if (self == [super init]) {
//配置默认值 这里
self.DWAccount_userId = @"391E6E3340A00767";
self.DWAccount_apikey = @"T8WdOUuvFEiOsou1xjDr4U73v12M7iNa";
......
//版本号
#define SDK_VERSION @"4.9.0"
#define SDK_VERSION @"4.9.1"
#import <CCVodSDK/DWGIFManager.h>
#import <CCVodSDK/DWAdInfo.h>
......
......@@ -1837,6 +1837,6 @@ footer.ty-footer {
</style>
</head>
<body class='typora-export' >
<div id='write' class = ''><h1><a name="更新日志" class="md-header-anchor"></a><span>更新日志 </span></h1><h2><a name="version-490" class="md-header-anchor"></a><span>Version 4.9.0</span></h2><p><span>发布时间:2020-09-24</span></p><p><span>1.解决SDK在Xcode12上运行编译报错的问题。</span></p><p><span>2.优化广告功能,支持片尾广告。</span></p><p><span>3.修复demo中的bug。</span></p><h2><a name="version-481" class="md-header-anchor"></a><span>Version 4.8.1</span></h2><p><span>发布时间:2020-08-24</span></p><p><span>1.新增动感视频功能 </span></p><h2><a name="version-480" class="md-header-anchor"></a><span>Version 4.8.0</span></h2><p><span>发布时间:2020-08-17</span></p><p><span>1.SDK类型由.a升级为.framework。</span></p><p><span>2.优化播放流程,主线路播放失败时自动切换备用线路。</span></p><p><span>3.完善SDK注释。</span></p><h2><a name="version-470" class="md-header-anchor"></a><span>Version 4.7.0</span></h2><p><span>发布时间:2020-07-14</span></p><p><span>1.优化SDK解密模块,提升稳定性。</span></p><p><span>2.新增平台统计功能。</span></p><p><span>3.调整SDK架构,解决与其他产品线的冲突。</span></p><h2><a name="version-461" class="md-header-anchor"></a><span>Version 4.6.1</span></h2><p><span>发布时间:2020-07-01</span></p><p><span>1.优化DWPlayerView工作流程。</span></p><p><span>2.demo中新增播放失败重试逻辑。</span></p><h2><a name="version-460" class="md-header-anchor"></a><span>Version 4.6.0</span></h2><p><span>发布时间:2020-06-19</span></p><p><span>1.新增弹幕功能。</span></p><p><span>2.修复手势拖拽在ipad上的兼容性问题。</span></p><h2><a name="version-452" class="md-header-anchor"></a><span>Version 4.5.2</span></h2><p><span>发布时间:2020-06-03</span></p><p><span>1.修复进度条显示异常的问题。</span></p><p><span>2.修复GIF录制时,loading可能不消失的问题。</span></p><p><span>3.优化SDK解密流程,提升稳定性。</span></p><p><span>4.优化SDK统计上报流程。</span></p><h2><a name="version-451" class="md-header-anchor"></a><span>Version 4.5.1</span></h2><p><span>发布时间:2020-05-20</span></p><p><span>1.修复小窗模式导致的播放异常的问题。</span></p><p><span>2.修复离线播放页面UI显示异常的问题。</span></p><h2><a name="version-450" class="md-header-anchor"></a><span>Version 4.5.0</span></h2><p><span>发布时间:2020-05-13</span></p><p><span>1.新增小窗播放功能。</span></p><p><span>2.支持加密,非加密视频截图。</span></p><p><span>3.修复了网络检测页面在iOS13上的兼容性问题。</span></p><h2><a name="version-443" class="md-header-anchor"></a><span>Version 4.4.3</span></h2><p><span>发布时间:2020-04-14</span></p><p><span>1.修复拖拽统计异常的问题。</span></p><p><span>2.修复下载链接超时时,可能会重新下载的问题。</span></p><h2><a name="version-442" class="md-header-anchor"></a><span>Version 4.4.2</span></h2><p><span>发布时间:2020-03-24</span></p><p><span>1.播放页面新增手势调节功能。</span></p><h2><a name="version-441" class="md-header-anchor"></a><span>Version 4.4.1</span></h2><p><span>发布时间:2020-03-17</span></p><p><span>1.跑马灯功能优化。</span></p><h2><a name="version-440" class="md-header-anchor"></a><span>Version 4.4.0</span></h2><p><span>发布时间:2020-03-13</span></p><p><span>1.新增音频统计功能。</span></p><p><span>2.新增跑马灯功能。</span></p><h2><a name="version-431" class="md-header-anchor"></a><span>Version 4.3.1</span></h2><p><span>发布时间:2020-03-02</span></p><p><span>1.DWPlayerView新增播放时长/暂停时长统计。</span></p><p><span>2.优化DWPlayInfo流程。</span></p><h2><a name="version-430" class="md-header-anchor"></a><span>Version 4.3.0</span></h2><p><span>发布时间:2020-02-21</span></p><p><span>1.支持视频后台播放功能。</span></p><p><span>2.支持iPad画中画功能。</span></p><p><span>3.修复了修改DWDownloadModel,othersInfo字段时,没有正确本地化的问题。</span></p><p><span>4.优化上传流程。</span></p><h2><a name="version-427" class="md-header-anchor"></a><span>Version 4.2.7</span></h2><p><span>发布时间:2020-01-02</span></p><p><span>更新内容:</span></p><p><span>1.优化了demo界面显示效果。</span></p><p><span>2.修复了下载时,导致任务异常失败的bug。</span></p><p><span>3.优化上传流程,同时解决了偶发导致程序闪退的bug。</span></p><p><span>4.优化数据统计相关逻辑。</span></p><h2><a name="version-425" class="md-header-anchor"></a><span>Version 4.2.5</span></h2><p><span>发布时间:2019-12-04</span></p><p><span>更新内容:</span></p><p><span>1.修复了视频文件上传时,SDK异常输出失败的bug。</span></p><p><span>2.优化下载流程,现在可以对等待中的下载任务进行暂停/继续下载操作了。</span></p><h2><a name="version-424" class="md-header-anchor"></a><span>Version 4.2.4</span></h2><p><span>发布时间:2019-11-14</span></p><p><span>更新内容:</span></p><p><span>1.demo页面逻辑优化。</span></p><p><span>2.SDK上传功能逻辑优化。</span></p><p><span>3.DWPlayInfo新增取消网络请求方法。</span></p><p><span>4.修复了4.2.3版本在低版本Xcode编译报错的问题。</span></p><h2><a name="version-423" class="md-header-anchor"></a><span>Version 4.2.3</span></h2><p><span>发布时间:2019-10-10</span></p><p><span>更新内容:</span></p><p><span>1.修复了iOS13下,播放本地视频可能会导致内存异常上涨的bug。</span></p><p><span>2.iOS13适配。</span></p><h2><a name="version-422" class="md-header-anchor"></a><span>Version 4.2.2</span></h2><p><span>发布时间:2019-08-27</span></p><p><span>更新内容:</span></p><p><span>1.DWPlayerView新增AVPlayerLayer属性。</span></p><p><span>2.修复了不引入DWSDK.h可能导致编译报错的bug。</span></p><h2><a name="version-421" class="md-header-anchor"></a><span>Version 4.2.1</span></h2><p><span>发布时间:2019-08-19</span></p><p><span>更新内容:</span></p><p><span>1.支持视频后台上传。</span></p><p><span>2.优化下载流程。</span></p><h2><a name="version-420" class="md-header-anchor"></a><span>Version 4.2.0</span></h2><p><span>发布时间:2019-08-12</span></p><p><span>更新内容:</span></p><p><span>1.新增视频防录屏功能</span></p><p><span>2.新增视频动态水印</span></p><p><span>3.优化离线视频播放流程</span></p><p><span>4.优化下载暂停流程</span></p><h2><a name="version-410" class="md-header-anchor"></a><span>Version 4.1.0</span></h2><p><span>发布时间:2019-07-30</span></p><p><span>更新内容:</span></p><p><span>1.新增视频投屏功能。</span></p><p><span>2.优化视频问答流程。</span></p><p><span>3.将resource.bundle修改为DWResource.bundle防止引入冲突。 </span></p><h2><a name="version-403" class="md-header-anchor"></a><span>Version 4.0.3</span></h2><p><span>发布时间:2019-07-09</span></p><p><span>更新内容:</span></p><p><span>1.修复了备用线路地址输出不正确的bug。</span></p><h2><a name="version-402" class="md-header-anchor"></a><span>Version 4.0.2</span></h2><p><span>发布时间:2019-07-03</span></p><p><span>更新内容:</span></p><p><span>1.修复了课堂练习显示有问题的bug。</span></p><h2><a name="version-401" class="md-header-anchor"></a><span>Version 4.0.1</span></h2><p><span>发布时间:2019-07-02</span></p><p><span>更新内容:</span></p><p><span>1.课堂练习功能。</span></p><p><span>2.支持m3u8格式,缓存时长控制。</span></p><p><span>3.修复了iPhone7及plus机型下,m3u8播放链接可能会返回有误的问题。</span></p><h2><a name="version-400" class="md-header-anchor"></a><span>Version 4.0.0</span></h2><p><span>发布时间:2019-06-18</span></p><p><span>更新内容:</span></p><p><span>1.demo全新升级。</span></p><p><span>2.加密与非加密版本的demo合并。</span></p><p><span>3.支持Cocoapods方式集成。</span></p><p><span>4.优化SDK使用方式。</span></p><h2><a name="version-345" class="md-header-anchor"></a><span>Version 3.4.5</span></h2><p><span>发布时间:2019-06-14</span></p><p><span>更新内容:</span></p><p><span>1.视频问答优化。</span></p><p><span>2.广告播放流程优化。</span></p><p><span>3.修复了低版本下,播放音频时可能会导致闪退的问题。</span></p><h2><a name="version-344" class="md-header-anchor"></a><span>Version 3.4.4</span></h2><p><span>发布时间:2019-05-17</span></p><p><span>更新内容:</span></p><p><span>1.新增访客信息收集器功能。 </span><br/><span> </span><br/><span>2.解决了在一些特殊情况下会发生crash的bug。</span></p><h2><a name="version-343" class="md-header-anchor"></a><span>Version 3.4.3</span></h2><p><span>发布时间:2019-04-19</span></p><p><span>更新内容:</span></p><p><span>1.修复了播放离线音视频可能会crash的bug。</span></p><h2><a name="version-341" class="md-header-anchor"></a><span>Version 3.4.1</span></h2><p><span>发布时间:2019-04-02</span></p><p><span>更新内容:</span></p><p><span>1.优化了播放音频时,可能出现的缓冲时间过长的问题。</span></p><h2><a name="version-340" class="md-header-anchor"></a><span>Version 3.4.0</span></h2><p><span>发布时间:2019-03-06</span></p><p><span>更新内容:</span></p><p><span>1.新增音频DRM加密功能。</span></p><h2><a name="version-336" class="md-header-anchor"></a><span>Version 3.3.6</span></h2><p><span>发布时间:2019-02-27</span></p><p><span>更新内容:</span></p><p><span>1.修复了对同一DWDrmServer对象多次调用start/stop,引起crash的bug。</span></p><h2><a name="version-335" class="md-header-anchor"></a><span>Version 3.3.5</span></h2><p><span>发布时间:2019-02-14</span></p><p><span>更新内容:</span></p><p><span>1.视频批量下载功能。</span></p><p><span>2.修复了Demo界面上的一些显示bug。</span></p><h2><a name="version-334" class="md-header-anchor"></a><span>Version 3.3.4</span></h2><p><span>发布时间:2019-01-25</span></p><p><span>更新内容:</span></p><p><span>1.新增字幕切换功能。</span></p><h2><a name="version-333" class="md-header-anchor"></a><span>Version 3.3.3</span></h2><p><span>发布时间:2019-01-09</span></p><p><span>更新内容:</span></p><p><span>1.修复了iOS11.3之后,当原URL失效时,无法使用新URL继续下载的BUG。</span></p><h2><a name="version-332" class="md-header-anchor"></a><span>Version 3.3.2</span></h2><p><span>发布时间:2018-12-26</span></p><p><span>更新内容:</span></p><p><span>1.完善SDK内部播放出错处理机制。</span></p><p><span>2.优化了demo流程,播放失败时自动切换备用线路。</span></p><p><span>3.修复了demo中的一些bug。</span></p><h2><a name="version-331" class="md-header-anchor"></a><span>Version 3.3.1</span></h2><p><span>发布时间:2018-12-12</span></p><p><span>更新内容:</span></p><p><span>1.GIF功能整合,m3u8视频格式可以正常生成GIF。</span></p><p><span>2.修复了Drm模块在弱网下可能引发的一些问题。</span></p><h2><a name="version-330" class="md-header-anchor"></a><span>Version 3.3.0</span></h2><p><span>发布时间:2018-11-22</span></p><p><span>更新内容:</span></p><p><span>1.视频问答新增单选多选类型。</span></p><p><span>2.新增网络检测功能。</span></p><p><span>3.原片实时播放流程处理。</span></p><p><span>4.修复了demo中的一些bug。</span></p><h2><a name="version-321" class="md-header-anchor"></a><span>Version 3.2.1</span></h2><p><span>发布时间:2018-10-26</span></p><p><span>更新内容:</span></p><p><span>1.SDK新增错误码。</span></p><p><span>2.修复了在iOS12下,导致程序crash的BUG。</span></p><h2><a name="version-320" class="md-header-anchor"></a><span>Version 3.2.0</span></h2><p><span>发布时间:2018-08-28</span></p><p><span>更新内容:</span></p><p><span>1.增加授权验证功能。</span></p><p><span>2.增加自定义超时时间功能。</span></p><h2><a name="version-318" class="md-header-anchor"></a><span>Version 3.1.8</span></h2><p><span>发布时间:2018-06-12</span></p><p><span>更新内容:</span></p><p><span>1.新增问答统计功能</span></p><h2><a name="version-317" class="md-header-anchor"></a><span>Version 3.1.7</span></h2><p><span>发布时间:2018-06-07</span></p><p><span>更新内容:</span></p><p><span>1.改善SDK帮助文档。</span></p><h2><a name="version-316" class="md-header-anchor"></a><span>Version 3.1.6</span></h2><p><span>发布时间:2018-05-22</span></p><p><span>更新内容:</span></p><p><span>1.增加字幕显示功能。</span></p><h2><a name="version-315" class="md-header-anchor"></a><span>Version 3.1.5</span></h2><p><span>发布时间:2018-05-15</span></p><p><span>更新内容:</span></p><p><span>1.新增问答图片显示功能。</span></p><h2><a name="version-314" class="md-header-anchor"></a><span>Version 3.1.4</span></h2><p><span>发布时间:2018-05-10</span></p><p><span>更新内容:</span></p><p><span>1.上传功能优化。</span></p></div>
<div id='write' class = ''><h1><a name="更新日志" class="md-header-anchor"></a><span>更新日志 </span></h1><h2><a name="version-491" class="md-header-anchor"></a><span>Version 4.9.1</span></h2><p><span>发布时间:2020-09-25</span></p><p><span>1.常见问题添加cocoapods集成编译报错的解决方案</span></p><h2><a name="version-490" class="md-header-anchor"></a><span>Version 4.9.0</span></h2><p><span>发布时间:2020-09-24</span></p><p><span>1.解决SDK在Xcode12上运行编译报错的问题。</span></p><p><span>2.优化广告功能,支持片尾广告。</span></p><p><span>3.修复demo中的bug。</span></p><h2><a name="version-481" class="md-header-anchor"></a><span>Version 4.8.1</span></h2><p><span>发布时间:2020-08-24</span></p><p><span>1.新增动感视频功能 </span></p><h2><a name="version-480" class="md-header-anchor"></a><span>Version 4.8.0</span></h2><p><span>发布时间:2020-08-17</span></p><p><span>1.SDK类型由.a升级为.framework。</span></p><p><span>2.优化播放流程,主线路播放失败时自动切换备用线路。</span></p><p><span>3.完善SDK注释。</span></p><h2><a name="version-470" class="md-header-anchor"></a><span>Version 4.7.0</span></h2><p><span>发布时间:2020-07-14</span></p><p><span>1.优化SDK解密模块,提升稳定性。</span></p><p><span>2.新增平台统计功能。</span></p><p><span>3.调整SDK架构,解决与其他产品线的冲突。</span></p><h2><a name="version-461" class="md-header-anchor"></a><span>Version 4.6.1</span></h2><p><span>发布时间:2020-07-01</span></p><p><span>1.优化DWPlayerView工作流程。</span></p><p><span>2.demo中新增播放失败重试逻辑。</span></p><h2><a name="version-460" class="md-header-anchor"></a><span>Version 4.6.0</span></h2><p><span>发布时间:2020-06-19</span></p><p><span>1.新增弹幕功能。</span></p><p><span>2.修复手势拖拽在ipad上的兼容性问题。</span></p><h2><a name="version-452" class="md-header-anchor"></a><span>Version 4.5.2</span></h2><p><span>发布时间:2020-06-03</span></p><p><span>1.修复进度条显示异常的问题。</span></p><p><span>2.修复GIF录制时,loading可能不消失的问题。</span></p><p><span>3.优化SDK解密流程,提升稳定性。</span></p><p><span>4.优化SDK统计上报流程。</span></p><h2><a name="version-451" class="md-header-anchor"></a><span>Version 4.5.1</span></h2><p><span>发布时间:2020-05-20</span></p><p><span>1.修复小窗模式导致的播放异常的问题。</span></p><p><span>2.修复离线播放页面UI显示异常的问题。</span></p><h2><a name="version-450" class="md-header-anchor"></a><span>Version 4.5.0</span></h2><p><span>发布时间:2020-05-13</span></p><p><span>1.新增小窗播放功能。</span></p><p><span>2.支持加密,非加密视频截图。</span></p><p><span>3.修复了网络检测页面在iOS13上的兼容性问题。</span></p><h2><a name="version-443" class="md-header-anchor"></a><span>Version 4.4.3</span></h2><p><span>发布时间:2020-04-14</span></p><p><span>1.修复拖拽统计异常的问题。</span></p><p><span>2.修复下载链接超时时,可能会重新下载的问题。</span></p><h2><a name="version-442" class="md-header-anchor"></a><span>Version 4.4.2</span></h2><p><span>发布时间:2020-03-24</span></p><p><span>1.播放页面新增手势调节功能。</span></p><h2><a name="version-441" class="md-header-anchor"></a><span>Version 4.4.1</span></h2><p><span>发布时间:2020-03-17</span></p><p><span>1.跑马灯功能优化。</span></p><h2><a name="version-440" class="md-header-anchor"></a><span>Version 4.4.0</span></h2><p><span>发布时间:2020-03-13</span></p><p><span>1.新增音频统计功能。</span></p><p><span>2.新增跑马灯功能。</span></p><h2><a name="version-431" class="md-header-anchor"></a><span>Version 4.3.1</span></h2><p><span>发布时间:2020-03-02</span></p><p><span>1.DWPlayerView新增播放时长/暂停时长统计。</span></p><p><span>2.优化DWPlayInfo流程。</span></p><h2><a name="version-430" class="md-header-anchor"></a><span>Version 4.3.0</span></h2><p><span>发布时间:2020-02-21</span></p><p><span>1.支持视频后台播放功能。</span></p><p><span>2.支持iPad画中画功能。</span></p><p><span>3.修复了修改DWDownloadModel,othersInfo字段时,没有正确本地化的问题。</span></p><p><span>4.优化上传流程。</span></p><h2><a name="version-427" class="md-header-anchor"></a><span>Version 4.2.7</span></h2><p><span>发布时间:2020-01-02</span></p><p><span>更新内容:</span></p><p><span>1.优化了demo界面显示效果。</span></p><p><span>2.修复了下载时,导致任务异常失败的bug。</span></p><p><span>3.优化上传流程,同时解决了偶发导致程序闪退的bug。</span></p><p><span>4.优化数据统计相关逻辑。</span></p><h2><a name="version-425" class="md-header-anchor"></a><span>Version 4.2.5</span></h2><p><span>发布时间:2019-12-04</span></p><p><span>更新内容:</span></p><p><span>1.修复了视频文件上传时,SDK异常输出失败的bug。</span></p><p><span>2.优化下载流程,现在可以对等待中的下载任务进行暂停/继续下载操作了。</span></p><h2><a name="version-424" class="md-header-anchor"></a><span>Version 4.2.4</span></h2><p><span>发布时间:2019-11-14</span></p><p><span>更新内容:</span></p><p><span>1.demo页面逻辑优化。</span></p><p><span>2.SDK上传功能逻辑优化。</span></p><p><span>3.DWPlayInfo新增取消网络请求方法。</span></p><p><span>4.修复了4.2.3版本在低版本Xcode编译报错的问题。</span></p><h2><a name="version-423" class="md-header-anchor"></a><span>Version 4.2.3</span></h2><p><span>发布时间:2019-10-10</span></p><p><span>更新内容:</span></p><p><span>1.修复了iOS13下,播放本地视频可能会导致内存异常上涨的bug。</span></p><p><span>2.iOS13适配。</span></p><h2><a name="version-422" class="md-header-anchor"></a><span>Version 4.2.2</span></h2><p><span>发布时间:2019-08-27</span></p><p><span>更新内容:</span></p><p><span>1.DWPlayerView新增AVPlayerLayer属性。</span></p><p><span>2.修复了不引入DWSDK.h可能导致编译报错的bug。</span></p><h2><a name="version-421" class="md-header-anchor"></a><span>Version 4.2.1</span></h2><p><span>发布时间:2019-08-19</span></p><p><span>更新内容:</span></p><p><span>1.支持视频后台上传。</span></p><p><span>2.优化下载流程。</span></p><h2><a name="version-420" class="md-header-anchor"></a><span>Version 4.2.0</span></h2><p><span>发布时间:2019-08-12</span></p><p><span>更新内容:</span></p><p><span>1.新增视频防录屏功能</span></p><p><span>2.新增视频动态水印</span></p><p><span>3.优化离线视频播放流程</span></p><p><span>4.优化下载暂停流程</span></p><h2><a name="version-410" class="md-header-anchor"></a><span>Version 4.1.0</span></h2><p><span>发布时间:2019-07-30</span></p><p><span>更新内容:</span></p><p><span>1.新增视频投屏功能。</span></p><p><span>2.优化视频问答流程。</span></p><p><span>3.将resource.bundle修改为DWResource.bundle防止引入冲突。 </span></p><h2><a name="version-403" class="md-header-anchor"></a><span>Version 4.0.3</span></h2><p><span>发布时间:2019-07-09</span></p><p><span>更新内容:</span></p><p><span>1.修复了备用线路地址输出不正确的bug。</span></p><h2><a name="version-402" class="md-header-anchor"></a><span>Version 4.0.2</span></h2><p><span>发布时间:2019-07-03</span></p><p><span>更新内容:</span></p><p><span>1.修复了课堂练习显示有问题的bug。</span></p><h2><a name="version-401" class="md-header-anchor"></a><span>Version 4.0.1</span></h2><p><span>发布时间:2019-07-02</span></p><p><span>更新内容:</span></p><p><span>1.课堂练习功能。</span></p><p><span>2.支持m3u8格式,缓存时长控制。</span></p><p><span>3.修复了iPhone7及plus机型下,m3u8播放链接可能会返回有误的问题。</span></p><h2><a name="version-400" class="md-header-anchor"></a><span>Version 4.0.0</span></h2><p><span>发布时间:2019-06-18</span></p><p><span>更新内容:</span></p><p><span>1.demo全新升级。</span></p><p><span>2.加密与非加密版本的demo合并。</span></p><p><span>3.支持Cocoapods方式集成。</span></p><p><span>4.优化SDK使用方式。</span></p><h2><a name="version-345" class="md-header-anchor"></a><span>Version 3.4.5</span></h2><p><span>发布时间:2019-06-14</span></p><p><span>更新内容:</span></p><p><span>1.视频问答优化。</span></p><p><span>2.广告播放流程优化。</span></p><p><span>3.修复了低版本下,播放音频时可能会导致闪退的问题。</span></p><h2><a name="version-344" class="md-header-anchor"></a><span>Version 3.4.4</span></h2><p><span>发布时间:2019-05-17</span></p><p><span>更新内容:</span></p><p><span>1.新增访客信息收集器功能。 </span><br/><span> </span><br/><span>2.解决了在一些特殊情况下会发生crash的bug。</span></p><h2><a name="version-343" class="md-header-anchor"></a><span>Version 3.4.3</span></h2><p><span>发布时间:2019-04-19</span></p><p><span>更新内容:</span></p><p><span>1.修复了播放离线音视频可能会crash的bug。</span></p><h2><a name="version-341" class="md-header-anchor"></a><span>Version 3.4.1</span></h2><p><span>发布时间:2019-04-02</span></p><p><span>更新内容:</span></p><p><span>1.优化了播放音频时,可能出现的缓冲时间过长的问题。</span></p><h2><a name="version-340" class="md-header-anchor"></a><span>Version 3.4.0</span></h2><p><span>发布时间:2019-03-06</span></p><p><span>更新内容:</span></p><p><span>1.新增音频DRM加密功能。</span></p><h2><a name="version-336" class="md-header-anchor"></a><span>Version 3.3.6</span></h2><p><span>发布时间:2019-02-27</span></p><p><span>更新内容:</span></p><p><span>1.修复了对同一DWDrmServer对象多次调用start/stop,引起crash的bug。</span></p><h2><a name="version-335" class="md-header-anchor"></a><span>Version 3.3.5</span></h2><p><span>发布时间:2019-02-14</span></p><p><span>更新内容:</span></p><p><span>1.视频批量下载功能。</span></p><p><span>2.修复了Demo界面上的一些显示bug。</span></p><h2><a name="version-334" class="md-header-anchor"></a><span>Version 3.3.4</span></h2><p><span>发布时间:2019-01-25</span></p><p><span>更新内容:</span></p><p><span>1.新增字幕切换功能。</span></p><h2><a name="version-333" class="md-header-anchor"></a><span>Version 3.3.3</span></h2><p><span>发布时间:2019-01-09</span></p><p><span>更新内容:</span></p><p><span>1.修复了iOS11.3之后,当原URL失效时,无法使用新URL继续下载的BUG。</span></p><h2><a name="version-332" class="md-header-anchor"></a><span>Version 3.3.2</span></h2><p><span>发布时间:2018-12-26</span></p><p><span>更新内容:</span></p><p><span>1.完善SDK内部播放出错处理机制。</span></p><p><span>2.优化了demo流程,播放失败时自动切换备用线路。</span></p><p><span>3.修复了demo中的一些bug。</span></p><h2><a name="version-331" class="md-header-anchor"></a><span>Version 3.3.1</span></h2><p><span>发布时间:2018-12-12</span></p><p><span>更新内容:</span></p><p><span>1.GIF功能整合,m3u8视频格式可以正常生成GIF。</span></p><p><span>2.修复了Drm模块在弱网下可能引发的一些问题。</span></p><h2><a name="version-330" class="md-header-anchor"></a><span>Version 3.3.0</span></h2><p><span>发布时间:2018-11-22</span></p><p><span>更新内容:</span></p><p><span>1.视频问答新增单选多选类型。</span></p><p><span>2.新增网络检测功能。</span></p><p><span>3.原片实时播放流程处理。</span></p><p><span>4.修复了demo中的一些bug。</span></p><h2><a name="version-321" class="md-header-anchor"></a><span>Version 3.2.1</span></h2><p><span>发布时间:2018-10-26</span></p><p><span>更新内容:</span></p><p><span>1.SDK新增错误码。</span></p><p><span>2.修复了在iOS12下,导致程序crash的BUG。</span></p><h2><a name="version-320" class="md-header-anchor"></a><span>Version 3.2.0</span></h2><p><span>发布时间:2018-08-28</span></p><p><span>更新内容:</span></p><p><span>1.增加授权验证功能。</span></p><p><span>2.增加自定义超时时间功能。</span></p><h2><a name="version-318" class="md-header-anchor"></a><span>Version 3.1.8</span></h2><p><span>发布时间:2018-06-12</span></p><p><span>更新内容:</span></p><p><span>1.新增问答统计功能</span></p><h2><a name="version-317" class="md-header-anchor"></a><span>Version 3.1.7</span></h2><p><span>发布时间:2018-06-07</span></p><p><span>更新内容:</span></p><p><span>1.改善SDK帮助文档。</span></p><h2><a name="version-316" class="md-header-anchor"></a><span>Version 3.1.6</span></h2><p><span>发布时间:2018-05-22</span></p><p><span>更新内容:</span></p><p><span>1.增加字幕显示功能。</span></p><h2><a name="version-315" class="md-header-anchor"></a><span>Version 3.1.5</span></h2><p><span>发布时间:2018-05-15</span></p><p><span>更新内容:</span></p><p><span>1.新增问答图片显示功能。</span></p><h2><a name="version-314" class="md-header-anchor"></a><span>Version 3.1.4</span></h2><p><span>发布时间:2018-05-10</span></p><p><span>更新内容:</span></p><p><span>1.上传功能优化。</span></p></div>
</body>
</html>
\ No newline at end of file
......@@ -1910,6 +1910,7 @@ footer.ty-footer {
</style>
</head>
<body class='typora-export' >
<div id='write' class = ''><h1><a name="常见问题" class="md-header-anchor"></a><span>常见问题</span></h1><h2><a name="1dwplayinfo数据获取失败的问题" class="md-header-anchor"></a><span>1.DWPlayInfo数据获取失败的问题</span></h2><p><span>当遇到DWPlayInfo回调失败时,首先要排除userId、APIKEY是否有效,其次判断网络是否正常、是否已经连接、videoId是否是userId和APIKEY名下的视频。除此之外还可以通过HTTP通信日志排查问题。</span></p><h2><a name="2关于加密音视频的播放问题" class="md-header-anchor"></a><span>2.关于加密音视频的播放问题</span></h2><p><span>新版本中,对于原旧版本加密服务DWDrmServer的调用封装到了SDK内部,用户无需再对DWDrmServer服务进行操作,SDK会自动识别加密音视频进行播放。</span></p><h2><a name="3对于通过import-dwsdkh无法引入路径下的文件的问题" class="md-header-anchor"></a><span>3.对于通过#import &quot;DWSDK.h&quot;无法引入路径下的文件的问题</span></h2><p><span>找到TARGETS -&gt; Build Setting -&gt; Search Paths。添加</span><code>Header Search Path</code><span>,路径到SDK的文件夹下。若还无法找到,继续添加</span><code>User Header Search Path</code><span>即可。</span></p><h2><a name="4关于控制台频繁出现-nwconnectioncopyconnectedpath日志的问题" class="md-header-anchor"></a><span>4.关于控制台频繁出现&quot;[] nw_connection_copy_connected_path&quot;日志的问题</span></h2><p><span>找到Edit Scheme -&gt; Run -&gt; Arguments -&gt; Enviroment Variables,添加属性</span><code>OS_ACTIVITY_MODE</code><span>,设置为0即可。</span></p><h2><a name="5程序进入前台时下载任务回调可能不执行的问题" class="md-header-anchor"></a><span>5.程序进入前台时,下载任务回调可能不执行的问题</span></h2><p><span>我们发现,在iOS12的系统下,app进入前台时,有极小的概率会发生下载的回调不执行的问题。若想临时解决这个问题,只需要在appDelegate的applicationDidBecomeActive:方法中,将正在下载的任务暂停,然后延迟1秒以后在重新开始下载即可。最终还要等待苹果官方解决此问题。</span></p><h2><a name="6当集成423-sdk时若出现" class="md-header-anchor"></a><span>6.当集成4.2.3 SDK时,若出现 </span></h2><p><span>Undefined symbols for architecture x84_64:</span></p><p><span> &quot;__isPlatformVersionAtLeast&quot;,referenced from;</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span>ld:symbol(s) not found for architecture x84_64</span></p><p><span>clane: error: linker command failed with exit code 1 (use -v to see invocation)</span></p><p><span>编译错误时,请升级4.2.4及以上版本SDK或升级最新的Xcode重新编译即可。</span></p><h2><a name="7升级480及以后版本编译报错的问题" class="md-header-anchor"></a><span>7.升级4.8.0及以后版本编译报错的问题</span></h2><p><span>&#39;DWxxx.h&#39; file not found错误分为以下两种情况:</span></p><p><span>1.DWSDK.h文件,原DWSDK.h现更名为CCVodSDK.h,使用#import &lt;CCVodSDK/CCVodSDK.h&gt;方式引入头文件。</span></p><p><span>2.其他SDK文件报错,由于SDK库类型的变化,引入方式修改为#import &lt;CCVodSDK/DWxxx.h&gt;;或删除全部引入异常的头文件,在项目pch文件中,引入#import &lt;CCVodSDK/CCVodSDK.h&gt;即可。</span></p><h2><a name="8集成点播sdk打包上线报错的问题" class="md-header-anchor"></a><span>8.集成点播SDK打包上线报错的问题</span></h2><p><span>关于打包上线过程中,不支持 x86_64 和 i386 等情况。错误描述如下:</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang=""><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><span><span></span>x</span></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">The following issues occurred while distributing your application.</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64]."</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64,i386]."</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 286px;"></div><div class="CodeMirror-gutters" style="display: none; height: 286px;"></div></div></div></pre><p><span>解决方案:Target --&gt; Build Phases --&gt; 点击&quot;+&quot;按钮,选择&quot;New Run Script Phase&quot;,在 Run Script 内添加以下脚本方法,重新编译打包即可。</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># This script loops through the frameworks embedded in the application and &nbsp;</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># removes unused architectures. &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS=() &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">for ARCH in $ARCHS &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH") &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Merging extracted architectures: ${ARCHS}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Replacing original executable with thinned version" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 754px;"></div><div class="CodeMirror-gutters" style="display: none; height: 754px;"></div></div></div></pre><p><span>更多信息请参考</span><a href='https://doc.bokecc.com'><span> “获得场景视频帮助中心”</span></a><span>,如果在使用SDK过程中遇到其他问题请联系获得场景视频客服进行反馈。</span></p></div>
<div id='write' class = ''><h1><a name="常见问题" class="md-header-anchor"></a><span>常见问题</span></h1><h2><a name="1dwplayinfo数据获取失败的问题" class="md-header-anchor"></a><span>1.DWPlayInfo数据获取失败的问题</span></h2><p><span>当遇到DWPlayInfo回调失败时,首先要排除userId、APIKEY是否有效,其次判断网络是否正常、是否已经连接、videoId是否是userId和APIKEY名下的视频。除此之外还可以通过HTTP通信日志排查问题。</span></p><h2><a name="2关于加密音视频的播放问题" class="md-header-anchor"></a><span>2.关于加密音视频的播放问题</span></h2><p><span>新版本中,对于原旧版本加密服务DWDrmServer的调用封装到了SDK内部,用户无需再对DWDrmServer服务进行操作,SDK会自动识别加密音视频进行播放。</span></p><h2><a name="3对于通过import-dwsdkh无法引入路径下的文件的问题" class="md-header-anchor"></a><span>3.对于通过#import &quot;DWSDK.h&quot;无法引入路径下的文件的问题</span></h2><p><span>找到TARGETS -&gt; Build Setting -&gt; Search Paths。添加</span><code>Header Search Path</code><span>,路径到SDK的文件夹下。若还无法找到,继续添加</span><code>User Header Search Path</code><span>即可。</span></p><h2><a name="4关于控制台频繁出现-nwconnectioncopyconnectedpath日志的问题" class="md-header-anchor"></a><span>4.关于控制台频繁出现&quot;[] nw_connection_copy_connected_path&quot;日志的问题</span></h2><p><span>找到Edit Scheme -&gt; Run -&gt; Arguments -&gt; Enviroment Variables,添加属性</span><code>OS_ACTIVITY_MODE</code><span>,设置为0即可。</span></p><h2><a name="5程序进入前台时下载任务回调可能不执行的问题" class="md-header-anchor"></a><span>5.程序进入前台时,下载任务回调可能不执行的问题</span></h2><p><span>我们发现,在iOS12的系统下,app进入前台时,有极小的概率会发生下载的回调不执行的问题。若想临时解决这个问题,只需要在appDelegate的applicationDidBecomeActive:方法中,将正在下载的任务暂停,然后延迟1秒以后在重新开始下载即可。最终还要等待苹果官方解决此问题。</span></p><h2><a name="6当集成423-sdk时若出现" class="md-header-anchor"></a><span>6.当集成4.2.3 SDK时,若出现 </span></h2><p><span>Undefined symbols for architecture x84_64:</span></p><p><span> &quot;__isPlatformVersionAtLeast&quot;,referenced from;</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span>ld:symbol(s) not found for architecture x84_64</span></p><p><span>clane: error: linker command failed with exit code 1 (use -v to see invocation)</span></p><p><span>编译错误时,请升级4.2.4及以上版本SDK或升级最新的Xcode重新编译即可。</span></p><h2><a name="7升级480及以后版本编译报错的问题" class="md-header-anchor"></a><span>7.升级4.8.0及以后版本编译报错的问题</span></h2><p><span>&#39;DWxxx.h&#39; file not found错误分为以下两种情况:</span></p><p><span>1.DWSDK.h文件,原DWSDK.h现更名为CCVodSDK.h,使用#import &lt;CCVodSDK/CCVodSDK.h&gt;方式引入头文件。</span></p><p><span>2.其他SDK文件报错,由于SDK库类型的变化,引入方式修改为#import &lt;CCVodSDK/DWxxx.h&gt;;或删除全部引入异常的头文件,在项目pch文件中,引入#import &lt;CCVodSDK/CCVodSDK.h&gt;即可。</span></p><h2><a name="8集成点播sdk打包上线报错的问题" class="md-header-anchor"></a><span>8.集成点播SDK打包上线报错的问题</span></h2><p><span>关于打包上线过程中,不支持 x86_64 和 i386 等情况。错误描述如下:</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang=""><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><span><span></span>x</span></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">The following issues occurred while distributing your application.</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64]."</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64,i386]."</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 286px;"></div><div class="CodeMirror-gutters" style="display: none; height: 286px;"></div></div></div></pre><p><span>解决方案:Target --&gt; Build Phases --&gt; 点击&quot;+&quot;按钮,选择&quot;New Run Script Phase&quot;,在 Run Script 内添加以下脚本方法,重新编译打包即可。</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># This script loops through the frameworks embedded in the application and &nbsp;</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># removes unused architectures. &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS=() &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">for ARCH in $ARCHS &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH") &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Merging extracted architectures: ${ARCHS}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Replacing original executable with thinned version" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 754px;"></div><div class="CodeMirror-gutters" style="display: none; height: 754px;"></div></div></div></pre><h2><a name="9关于使用cocoapods更新490及以上sdk编译报错的问题" class="md-header-anchor"></a><span>9.关于使用Cocoapods更新4.9.0及以上SDK编译报错的问题</span></h2><p><span>由于Xcode12的兼容性问题,在使用Cocoapods集成4.9.0及以上版本的SDK时,会导致如下编译错误</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang=""><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">dyld: Library not loaded: @rpath/HDBaseUtils.framework/HDBaseUtils</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> Referenced from: /private/var/containers/Bundle/Application/83A9ECB5-758F-4B99-90AA-56D4B0D835DC/xxx.app/xxx</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> Reason: image not found</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">dyld: launch, loading dependent libraries</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">DYLD_LIBRARY_PATH=/usr/lib/system/introspection</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Message from debugger: Terminated due to signal 6</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 286px;"></div><div class="CodeMirror-gutters" style="display: none; height: 286px;"></div></div></div></pre><p><span>解决方案:</span>
<span>第一步:项目 - TARGETS - Build Phases - Link Binary With Libraries - Add Other - Add Files.. 添加Pods/HDBaseUtils/HDBaseUtils/HDBaseUtils.framework。</span></p><p><span>第二步:项目 - TARGETS - General - Frameworks.Libraries,and Embedded Content - 找到HDBaseUtils.framework,将默认Do Not Embed修改为Embed &amp; Sign,即可。</span></p><p><span>更多信息请参考</span><a href='https://doc.bokecc.com'><span> “获得场景视频帮助中心”</span></a><span>,如果在使用SDK过程中遇到其他问题请联系获得场景视频客服进行反馈。</span></p></div>
</body>
</html>
\ No newline at end of file
//版本号
#define SDK_VERSION @"4.9.0"
#define SDK_VERSION @"4.9.1"
#import <CCVodSDK/DWGIFManager.h>
#import <CCVodSDK/DWAdInfo.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment