Comments (7)
我是列表播放视频,所以getProxyUrl 调用会比较频繁
from ksyhttpcache_ios.
依赖库的版本
- CocoaAsyncSocket (7.6.2)
- CocoaLumberjack (3.4.0):
- CocoaLumberjack/Default (= 3.4.0)
- CocoaLumberjack/Extensions (= 3.4.0)
- CocoaLumberjack/Default (3.4.0)
- CocoaLumberjack/Extensions (3.4.0):
- CocoaLumberjack/Default
from ksyhttpcache_ios.
[22:58:53] -[MMBPlayerView reloadPlayerInfo:] [第135行] get play url begin:2018-02-06 14:59:47 +0000
[21:48:33] +[MMBUrlProtocol canInitWithRequest:] [第57行] =========protocol canInitWithRequest ==== http://127.0.0.1:8123/CheckAlive
[21:48:33] +[MMBUrlProtocol canInitWithRequest:] [第57行] =========protocol canInitWithRequest ==== http://127.0.0.1:8123/CheckAlive
2018-02-06 22:59:48:002 myAPP[1435:242132] HTTPServer: Started HTTP server on port 8123
2018-02-06 22:59:48.002674+0800 myAPP[1435:242132] Started HTTP Server on port 8123
[22:58:53] -[MMBPlayerView reloadPlayerInfo:] [第137行] get play url end:2018-02-06 14:59:48 +0000
from ksyhttpcache_ios.
看日志是在本地代理服务异常后,调用getProxyUrl时会耗时大概1秒多的时间
这这个调用中是检测是代理服务状态,如果异常后会重启服务,目前要保证这个函数返回后代理服务必须是正常状态,所以只能是同步方式处理,就会导致了耗时阻塞主线程
可以尝试一下在业务层通过异步的方式来调用getProxyUrl,当返回后在交给播放器处理,保证界面不卡,播放器开播可能会慢一点
from ksyhttpcache_ios.
会经常出现异常,有时候重启服务要2s,还有,异步获取在复用的时候会有问题。目前app 嵌入了移动加速SDK,开启加速后,会比较慢,在做相关沟通
from ksyhttpcache_ios.
可以排查一下是什么操作会导致本地代理服务异常吗,因为我自测的时候各种折腾,只有在长时间后台后会出问题,正常前台操作没出过异常
from ksyhttpcache_ios.
from ksyhttpcache_ios.
Related Issues (20)
- 下载失败的时候 报线程的crash
- 硬解码回调失败 这问题怎么解决?
- 关于maxCacheSize HOT 2
- 请问,此sdk收费吗? HOT 1
- CPU 占用率过高 HOT 1
- 发现crash
- 发现crash HOT 3
- 发现crash
- 发现crash
- 请问支持hls吗? HOT 4
- 什么时候能开源啊
- 写的很好的一个库,啥时候开源呀,因为有些bug都不好改呀
- 发现个小问题 如果第一次请求地址失效 之后链接存在视频 再次请求就无法再播放了
- library not found for -lstdc++.6
- 下载m3u8的速度很慢
- Crash in [MediaDownloader setURL:contentInfo:]
- iOS缓存好的视频在沙盒里是.dat格式的,业务需要可以保存到相册,iOS系统相册不支持改格式如何处理
- KSYFileDownLoader不管用,下载一直失败,超时
- 缓存M3U8 CPU和内存巨高
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 ksyhttpcache_ios.