ChangbaDevs / KTVHTTPCache

A powerful media cache framework.
MIT License
2.37k stars 436 forks source link

可能为版本 1.1.0 的问题? #63

Closed dong136279559 closed 6 years ago

dong136279559 commented 6 years ago

您好,当我更新KTVHTTPCache 版本至 1.1.0 时, 我的项目无法正常进行视频播放,我使用的第三方音频播放器为 StreamingKit, 1.当我修改info.plist 中 Allow Arbitrary Loads 为 NO时 播放没有问题 , 2.当我降低版本为 1.0.4 时就没有这个问题了, 我不知道问题出在哪里,

libobjc commented 6 years ago

能否提供一个Demo?

libobjc commented 6 years ago

把 logSetRecordLogEnable 打开,贴个有问题的日志文件也行。

fanyuexiang commented 6 years ago

我使用的是豆瓣开源的播放器。这个都不是重点。 使用框架获取代理后的url能成功,如:"http://localhost:52844/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav",但是播放时就失败了,是不是本地server有问题,但是本地server已经开启过了

// 我使用的Swift,这个写法应该没问题吧 
// 开启本地服务
    private func configHttpServer() {
        if !KTVHTTPCache.proxyIsRunning() {
            var error: NSError?
            KTVHTTPCache.proxyStart(&error)
            KTVHTTPCache.logSetConsoleLogEnable(true)
        }
    }

播放一个文件时,所有的log如下:


2018-05-31 11:02:36.547200+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4420ae0, Proxy URL
http://localhost:52844/request?requestType=ping&originalURL=KTVHTTPCache
2018-05-31 11:02:36.561372+0800 together[1130:327336] <KTVHCHTTPConnection: 0x1c4128340>  :   alloc
2018-05-31 11:02:36.562415+0800 together[1130:327336] KTVHCHTTPConnection     :   0x1c4128340, Receive request
method : GET
path : /request?requestType=ping&originalURL=KTVHTTPCache
URL : /request?requestType=ping&originalURL=KTVHTTPCache -- http://localhost:52844/
2018-05-31 11:02:36.562459+0800 together[1130:327336] <KTVHCHTTPURL: 0x1c44354e0>  :   alloc
2018-05-31 11:02:36.562578+0800 together[1130:327336] KTVHCHTTPURL            :   0x1c44354e0, Proxy URL
/request?requestType=ping&originalURL=KTVHTTPCache -- http://localhost:52844/
KTVHTTPCache
2018-05-31 11:02:36.562616+0800 together[1130:327336] <KTVHCHTTPPingResponse: 0x1c4435700>  :   alloc
2018-05-31 11:02:36.562650+0800 together[1130:327336] <KTVHCHTTPURL: 0x1c44354e0>  :   dealloc
2018-05-31 11:02:36.562809+0800 together[1130:327336] KTVHCHTTPPingResponse   :   0x1c4435700, Read data : 4
2018-05-31 11:02:36.563112+0800 together[1130:327342018-05-31 11:02:36.563781+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Ping result : 1
2018-05-31 11:02:36.564347+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Ping
success : 1
index : 0
2018-05-31 11:02:36.564386+0800 together[1130:326068] <KTVHCHTTPURL: 0x1c4435620>  :   alloc
2018-05-31 11:02:36.564421+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4435620, Original URL
http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.564767+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4435620, Proxy URL
http://localhost:52844/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.564897+0800 together[1130:326068] <KTVHCHTTPURL: 0x1c4435620>  :   dealloc
2018-05-31 11:02:36.564925+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Return URL
URL : http://localhost:52844/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.566099+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4420ae0, Proxy URL
http://localhost:52844/request?requestType=ping&originalURL=KTVHTTPCache
1] KTVHCHTTPPingResponse   :   0x1c4435700, Connection did closed
2018-05-31 11:02:36.568797+0800 together[1130:327341] <KTVHCHTTPPingResponse: 0x1c4435700>  :   dealloc
2018-05-31 11:02:36.570418+0800 together[1130:327340] KTVHCHTTPConnection     :   0x1c4128340, Receive request
method : GET
path : /request?requestType=ping&originalURL=KTVHTTPCache
URL : /request?requestType=ping&originalURL=KTVHTTPCache -- http://localhost:52844/
2018-05-31 11:02:36.570508+0800 together[1130:327340] <KTVHCHTTPURL: 0x1c0424e00>  :   alloc
2018-05-31 11:02:36.570615+0800 together[1130:327340] KTVHCHTTPURL            :   0x1c0424e00, Proxy URL
/request?requestType=ping&originalURL=KTVHTTPCache -- http://localhost:52844/
KTVHTTPCache
2018-05-31 11:02:36.570647+0800 together[1130:327340] <KTVHCHTTPPingResponse: 0x1c4435d40>  :   alloc
2018-05-31 11:02:36.570676+0800 together[1130:327340] <KTVHCHTTPURL: 0x1c0424e00>  :   dealloc
2018-05-31 11:02:36.570836+0800 together[1130:327340] KTVHCHTTPPingResponse   :   0x1c4435d40, Read data : 4
2018-05-31 11:02:36.571243+0800 together[1130:327345] KTVHCHTTPPingResponse   :   0x1c4435d40, Connection did closed
2018-05-31 11:02:36.571294+0800 together[1130:327345] <KTVHCHTTPPingResponse: 0x1c4435d40>  :   dealloc
2018-05-31 11:02:36.572415+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Ping result : 1
2018-05-31 11:02:36.572461+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Ping
success : 1
index : 0
2018-05-31 11:02:36.572491+0800 together[1130:326068] <KTVHCHTTPURL: 0x1c4435240>  :   alloc
2018-05-31 11:02:36.572522+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4435240, Original URL
http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.572820+0800 together[1130:326068] KTVHCHTTPURL            :   0x1c4435240, Proxy URL
http://localhost:52844/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.572850+0800 together[1130:326068] <KTVHCHTTPURL: 0x1c4435240>  :   dealloc
2018-05-31 11:02:36.572877+0800 together[1130:326068] KTVHCHTTPServer         :   0x1c0459ec0, Return URL
URL : http://localhost:52844/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
< 2018-05-31 11:02:36.574 WTFindRadioViewController.swift,playVoice(),(406) > 播放
2018-05-31 11:02:36.578050+0800 together[1130:327336] <KTVHCHTTPConnection: 0x1c41294c0>  :   alloc
2018-05-31 11:02:36.578564+0800 together[1130:327340] KTVHCHTTPConnection     :   0x1c41294c0, Receive request
method : GET
path : /request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
URL : /request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav -- http://localhost:52844/
2018-05-31 11:02:36.578595+0800 together[1130:327340] <KTVHCHTTPURL: 0x1c422dc60>  :   alloc
2018-05-31 11:02:36.578682+0800 together[1130:327340] KTVHCHTTPURL            :   0x1c422dc60, Proxy URL
/request.wav?requestType=content&originalURL=http%3A%2F%2Fimage.wondertech.com.cn%2Ftogetherv2%2Fvoice%2Fios%2F2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav -- http://localhost:52844/
http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
2018-05-31 11:02:36.579394+0800 together[1130:327340] <KTVHCHTTPRequest: 0x1c465cb30>  :   alloc
2018-05-31 11:02:36.579452+0800 together[1130:327340] KTVHCHTTPRequest        :   0x1c465cb30, Create reqeust
URL : http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
Headers : {
    Connection = close;
    Host = "localhost:52844";
    "User-Agent" = "together 2.5.1 build 1 (iPhone; iOS 11.4; zh_CN)";
}
2018-05-31 11:02:36.579483+0800 together[1130:327340] <KTVHCHTTPResponse: 0x1c444b1f0>  :   alloc
2018-05-31 11:02:36.579532+0800 together[1130:327340] <KTVHCDataRequest: 0x1c445fcb0>  :   alloc
2018-05-31 11:02:36.579584+0800 together[1130:327340] KTVHCDataRequest        :   0x1c445fcb0 Create data request
URL : http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
Headers : {
    Connection = close;
    Host = "localhost:52844";
    "User-Agent" = "together 2.5.1 build 1 (iPhone; iOS 11.4; zh_CN)";
}
Range : Range : {9223372036854775807, 9223372036854775807}
2018-05-31 11:02:36.579788+0800 together[1130:327340] <KTVHCDataReader: 0x1c02c7f50>  :   alloc
2018-05-31 11:02:36.579901+0800 together[1130:327340] <KTVHCDataUnit: 0x1c04b0980>  :   alloc
2018-05-31 11:02:36.580068+0800 together[1130:327340] KTVHCDataUnit           :   0x1c04b0980, Create Unit
URL : http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
key : de2d0a65af00d6d7122824883ea44f89
timeInterval : 2018-05-31 03:02:36 +0000
totalLength : 0
cacheLength : 0
vaildLength : 0
requestHeaders : (null)
responseHeaders : (null)
unitItems : (
)
2018-05-31 11:02:36.580100+0800 together[1130:327340] KTVHCDataUnitPool       :   0x1c4422800, Insert Unit, <KTVHCDataUnit: 0x1c04b0980>
2018-05-31 11:02:36.580148+0800 together[1130:327340] KTVHCDataUnitQueue      :   0x1c0430e40, Archive - Begin, 6
2018-05-31 11:02:36.588322+0800 together[1130:327340] KTVHCDataUnitQueue      :   0x1c0430e40, Archive - End  , 6
2018-05-31 11:02:36.588386+0800 together[1130:327340] KTVHCDataUnit           :   0x1c04b0980, Working retain  : 1
2018-05-31 11:02:36.588452+0800 together[1130:327340] KTVHCDataUnit           :   0x1c04b0980, Update requestHeaders
{
    Connection = close;
    Host = "localhost:52844";
    "User-Agent" = "together 2.5.1 build 1 (iPhone; iOS 11.4; zh_CN)";
}
2018-05-31 11:02:36.588478+0800 together[1130:327340] KTVHCDataUnitQueue      :   0x1c0430e40, Archive - Begin, 6
2018-05-31 11:02:36.592043+0800 together[1130:327340] KTVHCDataUnitQueue      :   0x1c0430e40, Archive - End  , 6
2018-05-31 11:02:36.592129+0800 together[1130:327340] KTVHCDataReader         :   0x1c02c7f50, Create reader
orignalRequest : <KTVHCDataRequest: 0x1c445fcb0>
finalRequest : <KTVHCDataRequest: 0x1c445fcb0>
Unit : <KTVHCDataUnit: 0x1c04b0980>
2018-05-31 11:02:36.592172+0800 together[1130:327340] KTVHCDataReader         :   0x1c02c7f50, Call prepare
2018-05-31 11:02:36.592285+0800 together[1130:327340] <KTVHCDataSourceManager: 0x1c4485fa0>  :   alloc
2018-05-31 11:02:36.592346+0800 together[1130:327340] <KTVHCDataSourceQueue: 0x1c4201b50>  :   alloc
2018-05-31 11:02:36.592420+0800 together[1130:327340] KTVHCDataSourceQueue    :   0x1c04b0980, Get unitItems
(
)
2018-05-31 11:02:36.592454+0800 together[1130:327340] <KTVHCDataNetworkSource: 0x1c40f8400>  :   alloc
2018-05-31 11:02:36.592487+0800 together[1130:327340] KTVHCDataNetworkSource  :   0x1c40f8400, Create network source
request : <KTVHCDataRequest: 0x1c445fcb0>
range : Range : {9223372036854775807, 9223372036854775807}
2018-05-31 11:02:36.592542+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Put source : <KTVHCDataNetworkSource: 0x1c40f8400>
2018-05-31 11:02:36.592901+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Call prepare
2018-05-31 11:02:36.592957+0800 together[1130:327340] KTVHCDataSourceQueue    :   0x1c4201b50, Sort sources - Begin
Sources : (
    "<KTVHCDataNetworkSource: 0x1c40f8400>"
)
2018-05-31 11:02:36.593310+0800 together[1130:327340] KTVHCDataSourceQueue    :   0x1c4201b50, Sort sources - End  
Sources : (
    "<KTVHCDataNetworkSource: 0x1c40f8400>"
)
2018-05-31 11:02:36.593351+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Sort source
currentSource : <KTVHCDataNetworkSource: 0x1c40f8400>
currentNetworkSource : <KTVHCDataNetworkSource: 0x1c40f8400>
2018-05-31 11:02:36.593377+0800 together[1130:327340] KTVHCDataNetworkSource  :   0x1c40f8400, Call prepare
2018-05-31 11:02:36.593920+0800 together[1130:327340] KTVHCDownload           :   0x1c04c4830, Add Request
request : <KTVHCDataRequest: 0x1c445fcb0>
URL : http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
headers : {
    Connection = close;
    Host = "localhost:52844";
    "User-Agent" = "together 2.5.1 build 1 (iPhone; iOS 11.4; zh_CN)";
}
HTTPRequest headers : {
    Connection = close;
    "User-Agent" = "together 2.5.1 build 1 (iPhone; iOS 11.4; zh_CN)";
}
Count : 1
2018-05-31 11:02:36.594302+0800 together[1130:327340] KTVHCHTTPResponse       :   0x1c444b1f0, Create response
request : <KTVHCHTTPRequest: 0x1c465cb30>
2018-05-31 11:02:36.594337+0800 together[1130:327340] <KTVHCHTTPURL: 0x1c422dc60>  :   dealloc
2018-05-31 11:02:36.594443+0800 together[1130:327340] KTVHCHTTPResponse       :   0x1c444b1f0, Delay response : 1
-----参数------
["token": "eyJhbGciOiJIUzUxMiJ9.eyJwaG9uZSI6IjE1NzI3MzkyMTgwIiwiZXhwIjoxNTMwMzI2NjE2LCJ1c2VySWQiOjQ2NjB9.P3AyCJ1YDV7WHD5RqW3xzZi6OgXpY4wKGtiKSjX7cfgDgVnYbSdfzpYOhr1PmEhRRAwr3B56DX6wPomu-TwMxw", "voice": "http://image.wondertech.com.cn/togetherv2/voice/ios/2E44D8DA-B384-4D8D-8EEA-47B1B5503018.wav", "ou": 121000]
--------------
url: Optional(http://api.wondertech.com.cn/fmvoice/v1/voice/vlike)
状态码: 200
返回数据: Optional({
    code = 1;
    data = "<null>";
    errorInfo = "";
    success = 1;
})

2018-05-31 11:02:36.622870+0800 together[1130:327342] <KTVHCDataResponse: 0x1c4493290>  :   alloc
2018-05-31 11:02:36.623166+0800 together[1130:327342] KTVHCDataResponse       :   0x1c4493290 Create data response
URL : http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav
Headers : {
    "Accept-Ranges" = bytes;
    Connection = "keep-alive";
    "Content-Length" = 99968;
    "Content-MD5" = "xHdQFlrYXux1cDYOfFH2Rw==";
    "Content-Type" = "audio/x-wav";
    Date = "Thu, 31 May 2018 03:02:36 GMT";
    Etag = "\"C47750165AD85EEC7570360E7C51F647\"";
    "Last-Modified" = "Wed, 30 May 2018 13:12:18 GMT";
    Server = AliyunOSS;
    "x-oss-hash-crc64ecma" = 11968941579561250738;
    "x-oss-object-type" = Normal;
    "x-oss-request-id" = 5B0F65CCCB3DB154C500305D;
    "x-oss-server-time" = 2;
    "x-oss-storage-class" = Standard;
}
headersWithoutRangeAndLength : {
    "Accept-Ranges" = bytes;
    Connection = "keep-alive";
    "Content-MD5" = "xHdQFlrYXux1cDYOfFH2Rw==";
    "Content-Type" = "audio/x-wav";
    Date = "Thu, 31 May 2018 03:02:36 GMT";
    Etag = "\"C47750165AD85EEC7570360E7C51F647\"";
    "Last-Modified" = "Wed, 30 May 2018 13:12:18 GMT";
    Server = AliyunOSS;
    "x-oss-hash-crc64ecma" = 11968941579561250738;
    "x-oss-object-type" = Normal;
    "x-oss-request-id" = 5B0F65CCCB3DB154C500305D;
    "x-oss-server-time" = 2;
    "x-oss-storage-class" = Standard;
}
contentType : audio/x-wav
totalLength : 0
currentLength : 99968
2018-05-31 11:02:36.623787+0800 together[1130:327342] KTVHCDownload           :   0x1c04c4830, Receive response
request : <KTVHCDataRequest: 0x1c445fcb0>
response : <KTVHCDataResponse: 0x1c4493290>
HTTPResponse : {
    "Accept-Ranges" = bytes;
    Connection = "keep-alive";
    "Content-Length" = 99968;
    "Content-MD5" = "xHdQFlrYXux1cDYOfFH2Rw==";
    "Content-Type" = "audio/x-wav";
    Date = "Thu, 31 May 2018 03:02:36 GMT";
    Etag = "\"C47750165AD85EEC7570360E7C51F647\"";
    "Last-Modified" = "Wed, 30 May 2018 13:12:18 GMT";
    Server = AliyunOSS;
    "x-oss-hash-crc64ecma" = 11968941579561250738;
    "x-oss-object-type" = Normal;
    "x-oss-request-id" = 5B0F65CCCB3DB154C500305D;
    "x-oss-server-time" = 2;
    "x-oss-storage-class" = Standard;
}
2018-05-31 11:02:36.624348+0800 together[1130:327342] KTVHCDownload           :   0x1c04c4830, Invaild response
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
2018-05-31 11:02:36.627532+0800 together[1130:327342] <KTVHCDataResponse: 0x1c4493290>  :   dealloc
2018-05-31 11:02:36.628036+0800 together[1130:327342] KTVHCDownload           :   0x1c04c4830, Complete
Error : Error Domain=NSURLErrorDomain Code=-999 "已取消" UserInfo={NSErrorFailingURLStringKey=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, NSLocalizedDescription=已取消, NSErrorFailingURLKey=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav}
2018-05-31 11:02:36.628457+0800 together[1130:327342] KTVHCDataNetworkSource  :   0x1c40f8400, Complete with error
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
2018-05-31 11:02:36.629907+0800 together[1130:326756] Task <61A3EA30-B364-470F-A4DE-643FFD509D5B>.<2> finished with error - code: -999
2018-05-31 11:02:36.630672+0800 together[1130:327340] KTVHCDataSourceManager  :   failure, -192701
2018-05-31 11:02:36.631187+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Callback for network source failed - Begin
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
2018-05-31 11:02:36.631776+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Callback for network source failed - End
2018-05-31 11:02:36.631871+0800 together[1130:327340] KTVHCDataReader         :   0x1c02c7f50, Call close
2018-05-31 11:02:36.631900+0800 together[1130:327340] KTVHCDataSourceManager  :   0x1c4485fa0, Call close
2018-05-31 11:02:36.631930+0800 together[1130:327340] KTVHCDataNetworkSource  :   0x1c40f8400, Call close
2018-05-31 11:02:36.631990+0800 together[1130:327340] KTVHCDataUnit           :   0x1c04b0980, Working release : 0
2018-05-31 11:02:36.632358+0800 together[1130:327340] KTVHCDataReader         :   0x1c02c7f50, Callback for failed - Begin
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
2018-05-31 11:02:36.633048+0800 together[1130:327342] KTVHCDataReader         :   0x1c02c7f50, Callback for failed - End
2018-05-31 11:02:36.633452+0800 together[1130:327342] KTVHCHTTPResponse       :   0x1c444b1f0, Failed
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
2018-05-31 11:02:36.634156+0800 together[1130:327340] KTVHCHTTPResponse       :   0x1c444b1f0, Connection did closed : 0, 0
2018-05-31 11:02:36.634231+0800 together[1130:327340] <KTVHCHTTPResponse: 0x1c444b1f0>  :   dealloc
2018-05-31 11:02:36.634262+0800 together[1130:327340] <KTVHCDataReader: 0x1c02c7f50>  :   dealloc
2018-05-31 11:02:36.634610+0800 together[1130:327340] KTVHCDataReader         :   0x1c02c7f50, Destory reader
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
readOffset : 0
2018-05-31 11:02:36.642203+0800 together[1130:327340] <KTVHCDataSourceManager: 0x1c4485fa0>  :   dealloc
2018-05-31 11:02:36.642708+0800 together[1130:327340] KTVHCDataReader         :   0x1c4485fa0, Destory reader
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
currentSource : <KTVHCDataNetworkSource: 0x1c40f8400>
currentNetworkSource : <KTVHCDataNetworkSource: 0x1c40f8400>
< 2018-05-31 11:02:36.646 WTFindRadioViewController.swift,audioStreamer(status:),(413) > 播放error
< 2018-05-31 11:02:36.646 WTFindRadioViewController.swift,audioStreamer(status:),(413) > 播放error
2018-05-31 11:02:36.646801+0800 together[1130:327340] <KTVHCDataSourceQueue: 0x1c4201b50>  :   dealloc
2018-05-31 11:02:36.646839+0800 together[1130:327340] <KTVHCDataNetworkSource: 0x1c40f8400>  :   dealloc
2018-05-31 11:02:36.647082+0800 together[1130:327340] KTVHCDataNetworkSource  :   0x1c40f8400, Destory network source
Error : Error Domain=KTVHTTPCache error Code=-192701 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x1c001d340> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav }, KTVHCErrorUserInfoKeyURL=http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav, KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x1c44351e0> { URL: http://image.wondertech.com.cn/togetherv2/voice/ios/2208EBF6-6C20-4DB8-B072-CF499EFC4C11.wav } { Status Code: 200, Headers {
    "Accept-Ranges" =     (
        bytes
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        99968
    );
    "Content-MD5" =     (
        "xHdQFlrYXux1cDYOfFH2Rw=="
    );
    "Content-Type" =     (
        "audio/x-wav"
    );
    Date =     (
        "Thu, 31 May 2018 03:02:36 GMT"
    );
    Etag =     (
        "\"C47750165AD85EEC7570360E7C51F647\""
    );
    "Last-Modified" =     (
        "Wed, 30 May 2018 13:12:18 GMT"
    );
    Server =     (
        AliyunOSS
    );
    "x-oss-hash-crc64ecma" =     (
        11968941579561250738
    );
    "x-oss-object-type" =     (
        Normal
    );
    "x-oss-request-id" =     (
        5B0F65CCCB3DB154C500305D
    );
    "x-oss-server-time" =     (
        2
    );
    "x-oss-storage-class" =     (
        Standard
    );
} }}
downloadLength : 0
readedLength : 0
2018-05-31 11:02:36.648803+0800 together[1130:327340] <KTVHCDataRequest: 0x1c445fcb0>  :   dealloc
2018-05-31 11:02:36.648910+0800 together[1130:327340] <KTVHCHTTPRequest: 0x1c465cb30>  :   dealloc
2018-05-31 11:02:36.649005+0800 together[1130:327340] <KTVHCHTTPConnection: 0x1c41294c0>  :   dealloc
2018-05-31 11:03:06.575232+0800 together[1130:327340] <KTVHCHTTPConnection: 0x1c4128340>  :   dealloc
libobjc commented 6 years ago

多谢反馈,已在 1.1.1 修复。Pod 更新即可。