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

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": {
"forceNotBroadcasting": Common.forceNotBroadcasting,
"forceStopDownload": Common.forceStopDownload,
"forceNotUpload": Common.forceNotUpload,
}
}})
@ -95,6 +96,7 @@ def getConfigStats():
"config": {
"forceNotBroadcasting": Common.forceNotBroadcasting,
"forceStopDownload": Common.forceStopDownload,
"forceNotUpload": Common.forceNotUpload,
}
}})

View File

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

View File

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