共享人数限制
This commit is contained in:
+10
-3
@@ -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" });
|
||||
this.videoList = "videoList1";
|
||||
} 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