You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val task = DownloadTask.Builder(cacheUrl, parentFile, filename)
.setFilename(filename)
// the minimal interval millisecond for callback progress
.setMinIntervalMillisCallbackProcess(100)
// ignore the same task has already completed in the past.
.setPassIfAlreadyCompleted(false)
.setConnectionCount(1)
.build()
DownloadSerialQueue.enqueue(task)
进行下载视频,不管视频下载到的进度是多少,文件占用的内存都是完整文件的内存
Log
2024-07-04 11:08:56.088 981-1828 yyyyyy com.feiren.bike.owner D -----> start trial task(7) {If-Match=["7D9B848136D53C05F2288BA6E38CABF0-49"], Range=[bytes=0-0]}
2024-07-04 11:08:56.089 981-981 yyyyy com.feiren.bike.owner I connectTrialStart
2024-07-04 11:08:56.090 981-981 yyyyyy com.feiren.bike.owner D isPending: 7
2024-07-04 11:08:56.090 981-981 yyyyyy com.feiren.bike.owner D isRunning: 7
2024-07-04 11:08:56.179 981-1828 yyyyyy com.feiren.bike.owner D task[7] redirect location: null
2024-07-04 11:08:56.179 981-1828 yyyyyy com.feiren.bike.owner D <----- finish trial task(7) code[206]{null=[HTTP/1.1 206 Partial Content], Accept-Ranges=[bytes], Access-Control-Allow-Origin=[*], Age=[172292], Ali-Swift-Global-Savetime=[1719890244], Cache-Control=[public], Connection=[keep-alive], Content-Length=[1], Content-Range=[bytes 0-0/101769583], Content-Type=[video/mp4], Date=[Thu, 04 Jul 2024 03:08:56 GMT], EagleId=[65e21ca917200625364142043e], ETag=["7D9B848136D53C05F2288BA6E38CABF0-49"], Last-Modified=[Tue, 11 Jan 2022 11:28:10 GMT], Server=[Tengine], Timing-Allow-Origin=[*], Via=[cache23.l2cn3047[157,156,206-0,M], cache42.l2cn3047[158,0], vcache3.cn4757[0,11,206-0,H], vcache21.cn4757[13,0]], X-Android-Received-Millis=[1720062536177], X-Android-Response-Source=[NETWORK 206], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1720062536145], X-Cache=[HIT TCP_MEM_HIT dirn:10:334771314 mlen:0], x-oss-cdn-auth=[success], x-oss-hash-crc64ecma=[3565486629147334750], x-oss-object-type=[Multipart], x-oss-request-id=[6683714456AE693739F9F537], x-oss-server-time=[92], x-oss-storage-class=[Standard], X-Swift-CacheTime=[31104000], X-Swift-SaveTime=[Tue, 02 Jul 2024 03:17:24 GMT]}
2024-07-04 11:08:56.180 981-1828 yyyyyy com.feiren.bike.owner D is file conflict after run: 7
2024-07-04 11:08:56.180 981-981 yyyyy com.feiren.bike.owner I connectTrialEnd
2024-07-04 11:08:56.183 981-981 yyyyyy com.feiren.bike.owner D isPending: 7
2024-07-04 11:08:56.183 981-981 yyyyyy com.feiren.bike.owner D isRunning: 7
2024-07-04 11:08:56.183 981-1828 yyyyyy com.feiren.bike.owner D breakpoint invalid: download from beginning because of local check is dirty 7 fileExist[false] infoRight[true] outputStreamSupport[true] com.liulishuo.okdownload.core.download.BreakpointLocalCheck@d4fa704
2024-07-04 11:08:56.184 981-1828 yyyyyy com.feiren.bike.owner D downloadFromBeginning: 7
The text was updated successfully, but these errors were encountered:
OkDownload Version
v1.0.7
Problem Describe
使用
进行下载视频,不管视频下载到的进度是多少,文件占用的内存都是完整文件的内存
Log
The text was updated successfully, but these errors were encountered: