共享人数限制
This commit is contained in:
Vendored
+1
-1
@@ -1 +1 @@
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script src="https://api.xayunmei.com/onlyOffice/web-apps/apps/api/documents/api.js"></script><script defer="defer" src="/js/chunk-vendors.5307e452.js"></script><script defer="defer" src="/js/app.41e65d09.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.b59bb92e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script defer="defer" src="/js/chunk-vendors.5307e452.js"></script><script defer="defer" src="/js/app.7dd34254.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.b59bb92e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
+9
-2
@@ -316,6 +316,10 @@ export default {
|
||||
// this.videoList = "videoList1";
|
||||
// this.videoClass = "videoItem2";
|
||||
// this.screenShareFlag = true;
|
||||
if(this.screenShareFlag){
|
||||
alert("其他用户已经分享")
|
||||
return
|
||||
}
|
||||
await trtc.startScreenShare().then(() => {
|
||||
this.sharFlag = false;
|
||||
});
|
||||
@@ -505,10 +509,13 @@ export default {
|
||||
setTimeout(() => {
|
||||
trtc.startRemoteVideo({ userId, streamType, view: `${userId}` });
|
||||
});
|
||||
} else if (streamType == "main") {
|
||||
trtc.startRemoteVideo({ userId, streamType, view: "screenShare" });
|
||||
} else if (streamType == "sub") {
|
||||
setTimeout(()=>{
|
||||
trtc.startRemoteVideo({ userId, streamType, view: "screenShare" }).then(()=>{
|
||||
this.videoList = "videoList1";
|
||||
this.videoClass = "videoItem2";
|
||||
});
|
||||
})
|
||||
this.screenShareFlag = true;
|
||||
}
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user