直播5秒
This commit is contained in:
parent
68fac22bbf
commit
a0742923b5
2
dist/js/common.js
vendored
2
dist/js/common.js
vendored
@ -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";
|
||||
}
|
||||
|
@ -163,17 +163,7 @@ function setBtnClickFuc() {
|
||||
leave();
|
||||
$('#room-root').hide();
|
||||
$('#login-root').show();
|
||||
$.ajax({
|
||||
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(){
|
||||
|
||||
$.ajax({
|
||||
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
||||
headers: "Bearer " + localStorage.getItem("token"),
|
||||
@ -181,8 +171,6 @@ function setBtnClickFuc() {
|
||||
window.parent.location.href="/regime/live";
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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}`
|
||||
})
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user