Comments (8)
- 读 Player 的缓存进度就行。
- 要看 Player 触发什么行为,不同 Player 现象不同。
from ktvhttpcache.
- 可能是我没表述清楚,缓存进度指的是全部的进度。使用 Demo 试了下监听
loadedTimeRanges
并不满足需求,如果打开播放页后进度条直接拖动到比如 2/3 的位置,待该处到视频结尾处 cached 完成,CMTimeRangeGetEnd(timeRange)
就等于视频的 duration 了,而实际上从大概视频开始处到 2/3 左右的位置并没有缓存。
因为要拿 AVAsset 做生成 gif 功能,如果没有全部缓存完就去生成,代码就 gg 了:AVURLAsset *asset = [AVURLAsset assetWithURL:[NSURL URLWithString:[KTVHTTPCache proxyURLStringWithOriginalURLString:originalUrl]]]; // generate images with offset and time interval...
- AVPlayer 的
-seekToTime:
方法。
from ktvhttpcache.
- 建议不要依赖 KTVHTTPCache 来完成该 Feature,先不使用缓存把 Feature 完成,再无缝接入。
- 受调用时机、具体用法影响,现象也会有差异,我无法给你明确结论。建议去掉缓存抓包看下。
from ktvhttpcache.
嗯,目前是再 Download 一遍来实现,就是有点浪费用户流量……
from ktvhttpcache.
你可以在 Download 时给 Proxy URL,这样会和 Player 共用缓存。你也无需改实现逻辑。
from ktvhttpcache.
好主意,我试试,谢谢~
from ktvhttpcache.
12月24的版本,-cacheFetchCacheItemWithURLString:
返回的 KTVHCDataCacheItem
的 cacheLength
> totalLength
……
from ktvhttpcache.
在并发缓存时就是可能出现局部重合,文件名最后一位就是用于处理这种情况。出现频率取决于对同一 URL 并发加载量,例如反复 Seek。
from ktvhttpcache.
Related Issues (20)
- 使用KTVHCDataLoader预加载短视频,本地缓存的有两个名字不一样但是内容相同的视频文件 HOT 2
- 怎么预缓存完整的视频? HOT 7
- possible for API to customize filenameGenerator and cache file destination? HOT 1
- 为什么下载一个长视频会分成多个片段下载? HOT 1
- 预加载用cacheLoaderWithRequest,在先播放url用proxyURLWithOriginalURL,在线播放数据能不缓存在本地吗,只想缓存预加载部分,因为在线播放的数据太大了,预加载一般只缓存前几秒,小一些 HOT 2
- 1005 error HOT 1
- KTVHCDownload-startNetworkSpeedTimer
- 0 HOT 1
- 希望可以支持m3u8格式
- 进入后台后,KTVHCHTTPServer就停止了server HOT 1
- 有些地址使用KTV缓存就不能播放,而不用KTV缓存则可以播放 HOT 2
- 是否支持视频下载的链接
- iPad上不能播放视频 ,系统版本12.1
- 用原链接可以播放,但302重定向后缓存链接有一定概率播放不了,但是重新获取一个链接后,又可以播放。 HOT 2
- 请问怎么支持m3u8的视频,现在把m3u8的视频使用KTVHTTPCache转成本地链接就不能播放 HOT 3
- 对这个库稍微修改一下,一些建议:1.接入AVAssetResourceLoaderDelegate 2.在1基础上处理m3u8请求,当遇到ts资源 再用重定向到本地服务请求 HOT 2
- 请问如何控制视频下载请求头的的Range? HOT 1
- 多线程锁等待,导致主线程等待并卡死的紧急Bug报告 HOT 1
- 如何清理缓存,没有找到对应方法 HOT 1
- contenttype为application/vnd.apple.mpegurl的m3u8不支持呢,可以支持下吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktvhttpcache.