直播5秒

This commit is contained in:
unknown 2020-11-30 11:57:26 +08:00
parent 68fac22bbf
commit a0742923b5
5 changed files with 24 additions and 23 deletions

2
dist/js/common.js vendored
View File

@ -165,7 +165,7 @@ function setBtnClickFuc() {
$('#login-root').show();
$.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"),
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(){
window.parent.location.href="/regime/live";
}

View File

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

View File

@ -411,7 +411,7 @@
const urldata = GetRequest('roomid')
window.roomid = urldata.roomid
window.mid = urldata.memberid
window.lvieid = urldata.liveid
window.liveid = urldata.liveid
window.uname = urldata.name
</script>
@ -438,10 +438,23 @@
<script src="./js/index.js"></script>
<a href="/regime/video" target="_top" id="navto"></a>
<script>
window.mytime = 0;
window.myt = setInterval(()=>{
mytime++;
},1000)
setInterval(()=>{
$.ajax({
url: window.url + 'onExitRoom',
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"POST",
data:{
type:1,
memberid:window.mid,
liveid:window.liveid,
length:5
},
success(){
}
})
},5000)
</script>
</body>

View File

@ -275,7 +275,7 @@ export default defineComponent({
}
if(index == 2){
window.location.href="https://api.weibo.com/oauth2/authorize?client_id=2754574056&response_type=code&redirect_uri=https://beelink.theluyuan.com/"
window.location.href="https://api.weibo.com/oauth2/authorize?client_id=2754574056&response_type=code&redirect_uri=https://beelink.theluyuan.com/wblogin"
}
}

View File

@ -18,7 +18,7 @@ export default defineComponent({
if(id && typeof id == 'string'){
getliveinfo(parseInt(id)).then((res: any)=>{
luzhi(res.roomid)
url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}$liveid=${res.liveid}`
url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}`
})
}