Code Monkey home page Code Monkey logo

Comments (7)

hqwsun avatar hqwsun commented on June 11, 2024

我通过下载,但是下载完后,视频比较大的超过40M,格式依然不是MP4的

from ktvhttpcache.

hqwsun avatar hqwsun commented on June 11, 2024

我感觉肯定哪里做了限制没有合并成完整的视频,因此我获取到的有问题

from ktvhttpcache.

HaHe-emmm avatar HaHe-emmm commented on June 11, 2024

https://www.jianshu.com/p/3ffb26bf862c,你可以参考一下这个

from ktvhttpcache.

hqwsun avatar hqwsun commented on June 11, 2024

https://www.jianshu.com/p/3ffb26bf862c,你可以参考一下这个

不行,参考他的,KTVHCDownload会返回
Error : Error Domain=NSURLErrorDomain Code=-999 "cancelled"
找不到原因在哪里

from ktvhttpcache.

HaHe-emmm avatar HaHe-emmm commented on June 11, 2024

https://www.jianshu.com/p/3ffb26bf862c,你可以参考一下这个

不行,参考他的,KTVHCDownload会返回
Error : Error Domain=NSURLErrorDomain Code=-999 "cancelled"
找不到原因在哪里

#144 (comment)
我的倒是可以预加载,不过我的出了这个的问题

from ktvhttpcache.

HaHe-emmm avatar HaHe-emmm commented on June 11, 2024

我不知道你那个是不是需要做特殊的处理,我这边就是把这个作者的3、预加载核心代码,这个里面的代码加进去,然后就可以了

from ktvhttpcache.

memoryxy avatar memoryxy commented on June 11, 2024

// 一定要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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.