mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-12-05 18:01:56 +00:00
✨ feat: 增加 dy 压缩格式的自由选择
1. 增加 dy 压缩格式选择 2. 优化使用 http 不使用安全格式 https(出问题再修正)
This commit is contained in:
parent
2dbfe925e6
commit
faecc00a2b
@ -286,11 +286,11 @@ export class tools extends plugin {
|
|||||||
// H.265压缩率更高、流量省一半. 相对于H.264
|
// H.265压缩率更高、流量省一半. 相对于H.264
|
||||||
// 265 和 264 随机均衡负载
|
// 265 和 264 随机均衡负载
|
||||||
const videoAddrList = Math.random() > 0.5 ? play_addr_265.url_list : play_addr_h264.url_list;
|
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 {
|
} else {
|
||||||
// 原始格式,ps. videoAddrList 这里[0]、[1]是 http,[最后一个]是 https
|
// 原始格式
|
||||||
const videoAddrList = play_addr.url_list;
|
const videoAddrList = play_addr.url_list;
|
||||||
resUrl = videoAddrList[0] || videoAddrList[videoAddrList.length - 1];
|
resUrl = videoAddrList[videoAddrList.length - 1] || videoAddrList[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
// logger.info(resUrl);
|
// logger.info(resUrl);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user