From: qydysky Date: Thu, 10 Jun 2021 18:08:45 +0000 (+0800) Subject: 默认清晰度流保存超时bug X-Git-Tag: v0.5.10~41^2~113 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=8b579a30c95ccbe4ef6a88a651ebdf6f286577f4;p=bili_danmu%2F.git 默认清晰度流保存超时bug --- diff --git a/F/api.go b/F/api.go index dcb5d06..f4ef3c7 100644 --- 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) diff --git a/demo/config/config_K_v.json b/demo/config/config_K_v.json index ad01daf..4fd5b1d 100644 --- a/demo/config/config_K_v.json +++ b/demo/config/config_K_v.json @@ -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",