]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
默认清晰度流保存超时bug
authorqydysky <qydysky@foxmail.com>
Thu, 10 Jun 2021 18:08:45 +0000 (02:08 +0800)
committerqydysky <qydysky@foxmail.com>
Thu, 10 Jun 2021 18:08:45 +0000 (02:08 +0800)
F/api.go
demo/config/config_K_v.json

index dcb5d06303ec780aaad808a478f3a2d06c336d62..f4ef3c78b8ac4e24e0ba164bea77533d011208b2 100644 (file)
--- a/F/api.go
+++ b/F/api.go
@@ -359,6 +359,7 @@ func Html() (missKey []string) {
                        
                                                                //当前直播流质量
                                                                c.Live_qn = v.CurrentQn
+                                                               if c.Live_want_qn == 0 {c.Live_want_qn = v.CurrentQn}
                                                                //允许的清晰度
                                                                {
                                                                        var tmp = make(map[int]string)
@@ -611,6 +612,7 @@ func getRoomPlayInfo() (missKey []string) {
                
                                                        //当前直播流质量
                                                        c.Live_qn = v.CurrentQn
+                                                       if c.Live_want_qn == 0 {c.Live_want_qn = v.CurrentQn}
                                                        //允许的清晰度
                                                        {
                                                                var tmp = make(map[int]string)
@@ -775,6 +777,7 @@ func getRoomPlayInfoByQn() (missKey []string) {
        
                                                        //当前直播流质量
                                                        c.Live_qn = v.CurrentQn
+                                                       if c.Live_want_qn == 0 {c.Live_want_qn = v.CurrentQn}
                                                        //允许的清晰度
                                                        {
                                                                var tmp = make(map[int]string)
index ad01dafc8cdeb48f2edfd9284deedc5cb4d89511..4fd5b1d5f9946349d8dba8d452795029c7f44b5c 100644 (file)
@@ -44,7 +44,7 @@
     "Gtk弹幕窗": false,
     "调用obs": false,
     "直播流清晰度-help": "清晰度可选-1:不保存 0:默认 10000:原画 800:4K 401:蓝光(杜比) 400:蓝光 250:超清 150:高清 80:流畅,无提供所选清晰度时,使用低一档清晰度",
-    "直播流清晰度": 150,
+    "直播流清晰度": 0,
     "直播流类型-help": "flv or hls",
     "直播流类型": "hls",
     "直播流保存位置": "./live",