关闭提交时间

This commit is contained in:
2020-11-30 11:17:22 +08:00
parent f5eb29a27b
commit 68fac22bbf
3 changed files with 24 additions and 3 deletions

View File

@@ -164,12 +164,26 @@ function setBtnClickFuc() {
$('#room-root').hide();
$('#login-root').show();
$.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
url: window.url + 'onExitRoom?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"),
method:"POST",
data:{
type:1,
memberid:window.mid,
liveid:wiondow.liveid,
length:window.mytime
},
success(){
window.parent.location.href="/regime/live";
$.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"),
success(){
window.parent.location.href="/regime/live";
}
})
}
})
}
else{

View File

@@ -411,6 +411,7 @@
const urldata = GetRequest('roomid')
window.roomid = urldata.roomid
window.mid = urldata.memberid
window.lvieid = urldata.liveid
window.uname = urldata.name
</script>
@@ -436,6 +437,12 @@
<script src="./js/device-testing.js"></script>
<script src="./js/index.js"></script>
<a href="/regime/video" target="_top" id="navto"></a>
<script>
window.mytime = 0;
window.myt = setInterval(()=>{
mytime++;
},1000)
</script>
</body>
</html>