From faecc00a2b206e6298e15e5706e6ec4800bfb8dc Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 29 Jun 2024 15:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=A2=9E=E5=8A=A0=20dy=20?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=A0=BC=E5=BC=8F=E7=9A=84=E8=87=AA=E7=94=B1?= =?UTF-8?q?=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 增加 dy 压缩格式选择 2. 优化使用 http 不使用安全格式 https(出问题再修正) --- apps/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index abfbfff..774d6cd 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -286,11 +286,11 @@ export class tools extends plugin { // H.265压缩率更高、流量省一半. 相对于H.264 // 265 和 264 随机均衡负载 const videoAddrList = Math.random() > 0.5 ? play_addr_265.url_list : play_addr_h264.url_list; - resUrl = videoAddrList[0] || videoAddrList[videoAddrList.length - 1]; + resUrl = videoAddrList[videoAddrList.length - 1] || videoAddrList[0]; } else { - // 原始格式,ps. videoAddrList 这里[0]、[1]是 http,[最后一个]是 https + // 原始格式 const videoAddrList = play_addr.url_list; - resUrl = videoAddrList[0] || videoAddrList[videoAddrList.length - 1]; + resUrl = videoAddrList[videoAddrList.length - 1] || videoAddrList[0]; } // logger.info(resUrl);