支持不上传视频(待测试)

This commit is contained in:
2019-04-08 18:33:29 +08:00
parent b55686d095
commit 5e3f9e9aee
3 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,7 @@ def getAllStats():
"config": { "config": {
"forceNotBroadcasting": Common.forceNotBroadcasting, "forceNotBroadcasting": Common.forceNotBroadcasting,
"forceStopDownload": Common.forceStopDownload, "forceStopDownload": Common.forceStopDownload,
"forceNotUpload": Common.forceNotUpload,
} }
}}) }})
@ -95,6 +96,7 @@ def getConfigStats():
"config": { "config": {
"forceNotBroadcasting": Common.forceNotBroadcasting, "forceNotBroadcasting": Common.forceNotBroadcasting,
"forceStopDownload": Common.forceStopDownload, "forceStopDownload": Common.forceStopDownload,
"forceNotUpload": Common.forceNotUpload,
} }
}}) }})

View File

@ -31,6 +31,7 @@
<td><span id="updateTime"></span></td> <td><span id="updateTime"></span></td>
</tr> </tr>
</table> </table>
<hr/>
<h1>特殊设置</h1> <h1>特殊设置</h1>
<table> <table>
<tr> <tr>
@ -41,6 +42,10 @@
<td>是否设置强制不下载</td> <td>是否设置强制不下载</td>
<td><span id="forceStopDownload"></span></td> <td><span id="forceStopDownload"></span></td>
</tr> </tr>
<tr>
<td>是否设置强制不上传</td>
<td><span id="forceNotUpload"></span></td>
</tr>
</table> </table>
<hr/> <hr/>
<h1>当前状态</h1> <h1>当前状态</h1>
@ -66,7 +71,6 @@
<td><span id="operation"></span></td> <td><span id="operation"></span></td>
</tr> </tr>
</table> </table>
<hr/>
</div> </div>
</body> </body>
<script src="index.js"></script> <script src="index.js"></script>

View File

@ -8,6 +8,7 @@ function update(){
$("#streamUrl").text(res.data.broadcast.streamUrl) $("#streamUrl").text(res.data.broadcast.streamUrl)
$("#forceNotBroadcasting").text(res.data.config.forceNotBroadcasting) $("#forceNotBroadcasting").text(res.data.config.forceNotBroadcasting)
$("#forceStopDownload").text(res.data.config.forceStopDownload) $("#forceStopDownload").text(res.data.config.forceStopDownload)
$("#forceNotUpload").text(res.data.config.forceNotUpload)
$("#updateTime").text(res.data.broadcast.updateTime) $("#updateTime").text(res.data.broadcast.updateTime)
$("#download").html(function(){ $("#download").html(function(){
var ret = "" var ret = ""