Comments (7)
我通过下载,但是下载完后,视频比较大的超过40M,格式依然不是MP4的
from ktvhttpcache.
我感觉肯定哪里做了限制没有合并成完整的视频,因此我获取到的有问题
from ktvhttpcache.
https://www.jianshu.com/p/3ffb26bf862c,你可以参考一下这个
from ktvhttpcache.
不行,参考他的,KTVHCDownload会返回
Error : Error Domain=NSURLErrorDomain Code=-999 "cancelled"
找不到原因在哪里
from ktvhttpcache.
不行,参考他的,KTVHCDownload会返回
Error : Error Domain=NSURLErrorDomain Code=-999 "cancelled"
找不到原因在哪里
#144 (comment)
我的倒是可以预加载,不过我的出了这个的问题
from ktvhttpcache.
我不知道你那个是不是需要做特殊的处理,我这边就是把这个作者的3、预加载核心代码,这个里面的代码加进去,然后就可以了
from ktvhttpcache.
// 一定要retain loader
{
KTVHCDataRequest *request = [[KTVHCDataRequest alloc] initWithURL:url headers:[NSDictionary dictionary]];
KTVHCDataLoader *videoDownloader = [KTVHTTPCache cacheLoaderWithRequest:request];
videoDownloader.delegate = self;
[videoDownloader prepare];
[self.downloaders key:urlString value:videoDownloader];
}
- (void)ktv_loaderDidFinish:(KTVHCDataLoader *)loader {
[self.downloaders removeObjectForKey:loader.request.URL.absoluteString];
}
from ktvhttpcache.
Related Issues (20)
- 使用KTVHCDataLoader预加载短视频,本地缓存的有两个名字不一样但是内容相同的视频文件 HOT 2
- 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.