并发/连接
社区
bilibili/flv.js
https://github.com/bilibili/flv.js/issues?q=%E9%99%90%E5%88%B6
限制数
使用flv.js在前端播放,最多只能播放6个视频?
https://segmentfault.com/q/1010000014302305
使用flv.js在前端播放,最多只能播放6个视频?第7个就一直pending状态是怎么回事
https://github.com/bilibili/flv.js/issues/385
浏览器对同一域名进行请求的最大并发连接数
https://blog.csdn.net/wenshu12321/article/details/69488029
下表概括基于主机上运行的IE浏览器的版本的最大并发连接数、主机的连接速度和服务器的受支持的协议版本。
版本 HTTP 1.0 服务器(宽带连接) HTTP 1.1 服务器(宽带连接) HTTP 1.0 服务器(拨号连接) HTTP 1.1 服务器(拨号连接)
Internet Explorer 7 和早期版本 | 4 | 2 | 4 | 2 |
---|---|---|---|---|
Internet Explorer 8 | 6 | 6 | 4 | 2 |
Internet Explorer 9 | 10 | 10 | ? | ? |
Internet Explorer 10 | 6 | 6 | ? | ? |
Internet Explorer 11 | 6 | 6 | ? | ? |
chrome、firefox | 6 | 6 | ? | ? |
浏览器同域名请求的最大并发数限制
https://blog.csdn.net/dianfu2892/article/details/101466762?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control
2,一些主流浏览器对HTTP 1.1和HTTP 1.0的最大并发连接数目,可以参考如下表格:
浏览器 | HTTP / 1.1 | HTTP / 1.0 |
---|---|---|
IE 11 | 6 | 6 |
IE 10 | 6 | 6 |
IE 9 | 10 | 10 |
IE 8 | 6 | 6 |
IE 6,7 | 2 | 4 |
火狐 | 6 | 6 |
Safari 3,4 | 4 | 4 |
Chrome 4+ | 6 | 6 |
歌剧9.63,10.00alpha | 4 | 4 |
Opera 10.51+ | 8 | ? |
iPhone 2 | 4 | ? |
iPhone 3 | 6 | ? |
iPhone 4 | 4 | ? |
iphone 5 | 6 | ? |
Android2-4 | 4 | ? |
IE和Firefox对同一域名进行请求的并发连接数限制
https://www.iefans.net/qingqiu-bingfa-lianjieshu-xianzhi/
尝试方法
修改google限制数
实现浏览器中的最大请求并发数控制
https://blog.csdn.net/weixin_44829437/article/details/107625570
以下是 Chrome 浏览器关于最大请求链接数的一段介绍和相关代码,另外 Chrome 浏览器是不能修改这个值的,在源码里可以看到是固定写死的。
1. https://chromium.googlesource.com/chromium/src/+/65.0.3325.162/net/socket/client_socket_pool_manager.cc#44
2. // Default to allow up to 6 connections per host. Experiment and tuning may
3. // try other values (greater than 0). Too large may cause many problems, such
4. // as home routers blocking the connections!?!? See http://crbug.com/12066.
5. int g_max_sockets_per_group[] = {
6. 6, // NORMAL_SOCKET_POOL
7. 255 // WEBSOCKET_SOCKET_POOL
8. };
关闭google限制
拷贝google源码,修改开发一个浏览器
Google Chrome浏览器的源码
https://zhuanlan.zhihu.com/p/228734855
1、Google Chrome 源码 SVN 地址:http://src.chromium.org/svn。包含有 Chrome、Gears、Webkit、GCC 等源码以及编译依赖工具。Chrome 浏览器项目的源码,位于目录 http://src.chromium.org/svn/trunk/src/chrome/
2、Google Chrome 源码 Web 浏览地址:http://src.chromium.org/viewvc/
3、Google Chrome 所使用的 JavaScript V8 的源码下载地址:http://code.google.com/p/v8/
Google Chrome的每服务器最高连接数限制增加到6个以上
https://www.it1352.com/817552.html
代理视频到不同域
使用代理解决跨域直播源m3u8播放问题
https://www.jianshu.com/p/da2176382af5
使用flv.js + websokect播放rtsp格式视频流
https://www.cnblogs.com/liuqin-always/p/13853100.html
iframe嵌套
嵌套两个iframe页面,每个页面4个播放;项目内4个;共12路监控;
神奇:
页面播放6路,剩余pending,21.8min后同时播放7路
更换内核
无效:设置user agent 为Microsoft Edge(Edge-Windows)没有效果,依然只出六路,剩下的pennding;
更换浏览器
更换google为 Microsoft Edge 浏览器
https://www.microsoftedgeinsider.com/en-us/download/
无效:四个视频链接复制三遍共12个视频可以播放;但是12个视频链接时只播放6个,依旧被限制6个
更换浏览器为firefox
https://www.cnblogs.com/sunsky303/p/8862128.html
https://www.cnblogs.com/toumingbai/p/13976819.html
在地址栏访问 about:config
security.fileuri.strict_origin_policy切换到false 即可关闭跨域限制
network.http.max每台服务器是连接同一个服务器允许的最大持久连接数,默认为6,修改为12
有效:可以播放12个视频
使用HTTp2.0
操作在服务端