liuyu 4 years ago
parent
commit
2f4562c9f3
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/live/roomDetail.vue

+ 16 - 0
src/views/live/roomDetail.vue

@@ -214,6 +214,17 @@ export default {
       style += 'z-index:1;';
       lvr_.style.cssText = style;
     },
+    zbfpbtn() {
+      const width = document.documentElement.clientWidth;
+      const lvr_ = document.getElementById('look-video-right');
+      let stylel = 'width:30%;';
+      stylel += 'height:200px;';
+      lvr_.style.cssText = style;
+      const lvl_ = document.getElementById('look-video-left');
+      let stylell = 'width:70%;';
+      stylell += 'height:200px;';
+      lvl_.style.cssText = stylell;
+    },
     swichposition(objid) {
       console.log('in swichposition---' + objid);
       if (objid) {
@@ -529,7 +540,11 @@ export default {
           console.log('222--->' + useridsplit_);
           if (useridsplit_ === 'share') {
             this.lvideoid_ = 'video_' + remoteStream.getId();
+            this.zbfpbtn();
             this.swichposition();
+            this.othedivshow = false;
+            this.oheight = '200px';
+            this.otheheight = '1px';
             remoteStream
               .play('look-video-left')
               .then(() => {
@@ -549,6 +564,7 @@ export default {
           } else if (useridsplit_ === 'mainr') {
             console.log('333');
             this.rvideoid_ = 'video_' + remoteStream.getId();
+            this.zbfullbtn();
             remoteStream
               .play('look-video-right')
               .then(() => {