@@ -18,23 +18,23 @@ func processHTTPStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, id
1818 logging .Debugf ("处理 HTTPStrm %s PlaybackInfo 耗时:%s" , id , time .Since (startTime ))
1919 }()
2020
21- if ! config .HTTPStrm .TransCode {
21+ if ! config .HTTPStrm .Proxy {
2222 jsonChain .Set (
23- bsePath + "SupportsDirectPlay" ,
24- true ,
25- ).Set (
2623 bsePath + "SupportsDirectStream" ,
2724 false ,
2825 ).Set (
2926 bsePath + "SupportsTranscoding" ,
3027 false ,
3128 ).Delete (
3229 bsePath + "TranscodingUrl" ,
30+ ).Delete (
31+ bsePath + "TranscodingContainer" ,
3332 ).Delete (
3433 bsePath + "TranscodingSubProtocol" ,
3534 ).Delete (
36- bsePath + "TranscodingContainer " ,
35+ bsePath + "TrancodeLiveStartIndex " ,
3736 )
37+
3838 var msgs []string
3939 if directStreamURL != nil {
4040 msgs = append (msgs , fmt .Sprintf ("原直链播放链接: %s" , * directStreamURL ))
@@ -49,9 +49,9 @@ func processHTTPStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, id
4949 )
5050 msgs = append (msgs , fmt .Sprintf ("修改直链播放链接为: %s" , directStreamURL ))
5151 }
52- logging .Infof ("%s 强制禁止转码 %s" , id , strings .Join (msgs , ", " ))
52+ logging .Infof ("%s 强制禁止串流/转码行为, %s" , id , strings .Join (msgs , ", " ))
5353 } else {
54- logging .Infof ("%s 保持原有转码设置 " , id )
54+ logging .Infof ("%s 保持原有串流/转码行为 " , id )
5555 }
5656}
5757
@@ -61,22 +61,21 @@ func processAlistStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, id
6161 logging .Debugf ("处理 AlistStrm %s PlaybackInfo 耗时:%s" , id , time .Since (startTime ))
6262 }()
6363
64- if ! config .AlistStrm .TransCode {
64+ if ! config .AlistStrm .Proxy {
6565 jsonChain .Set (
66- bsePath + "SupportsDirectPlay" ,
67- true ,
68- ).Set (
6966 bsePath + "SupportsDirectStream" ,
7067 false ,
7168 ).Set (
7269 bsePath + "SupportsTranscoding" ,
7370 false ,
7471 ).Delete (
7572 bsePath + "TranscodingUrl" ,
73+ ).Delete (
74+ bsePath + "TranscodingContainer" ,
7675 ).Delete (
7776 bsePath + "TranscodingSubProtocol" ,
7877 ).Delete (
79- bsePath + "TranscodingContainer " ,
78+ bsePath + "TrancodeLiveStartIndex " ,
8079 )
8180
8281 var msgs []string
@@ -102,9 +101,9 @@ func processAlistStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, id
102101 container ,
103102 )
104103 msgs = append (msgs , fmt .Sprintf ("容器为: %s" , container ))
105- logging .Infof ("%s 强制禁止转码 ,%s" , id , strings .Join (msgs , ", " ))
104+ logging .Infof ("%s 强制禁止串流/转码行为 ,%s" , id , strings .Join (msgs , ", " ))
106105 } else {
107- logging .Infof ("%s 保持原有转码设置 " , id )
106+ logging .Infof ("%s 保持原有串流/转码行为 " , id )
108107 }
109108
110109 if size == nil {
0 commit comments