|
|
@@ -316,6 +316,10 @@ export default {
|
|
316
|
316
|
// this.videoList = "videoList1";
|
|
317
|
317
|
// this.videoClass = "videoItem2";
|
|
318
|
318
|
// this.screenShareFlag = true;
|
|
|
319
|
+ if(this.screenShareFlag){
|
|
|
320
|
+ alert("其他用户已经分享")
|
|
|
321
|
+ return
|
|
|
322
|
+ }
|
|
319
|
323
|
await trtc.startScreenShare().then(() => {
|
|
320
|
324
|
this.sharFlag = false;
|
|
321
|
325
|
});
|
|
|
@@ -505,10 +509,13 @@ export default {
|
|
505
|
509
|
setTimeout(() => {
|
|
506
|
510
|
trtc.startRemoteVideo({ userId, streamType, view: `${userId}` });
|
|
507
|
511
|
});
|
|
508
|
|
- } else if (streamType == "main") {
|
|
509
|
|
- trtc.startRemoteVideo({ userId, streamType, view: "screenShare" });
|
|
510
|
|
- this.videoList = "videoList1";
|
|
|
512
|
+ } else if (streamType == "sub") {
|
|
|
513
|
+ setTimeout(()=>{
|
|
|
514
|
+ trtc.startRemoteVideo({ userId, streamType, view: "screenShare" }).then(()=>{
|
|
|
515
|
+ this.videoList = "videoList1";
|
|
511
|
516
|
this.videoClass = "videoItem2";
|
|
|
517
|
+ });
|
|
|
518
|
+ })
|
|
512
|
519
|
this.screenShareFlag = true;
|
|
513
|
520
|
}
|
|
514
|
521
|
setTimeout(() => {
|