Browse Source

[demo] - fix publish screen

kevin.song 5 years ago
parent
commit
0ce19c6fbc

+ 1 - 1
examples/angular/src/pages/room/index.ts

@@ -132,7 +132,7 @@ export class RoomComponent implements OnInit, AfterContentInit, AfterViewInit, O
     });
   }
   handlePublishScreen() {
-    this.client.publish({ audio: true, video: false, screen: true }, (err) => {
+    this.client.publish({ audio: false, video: false, screen: true }, (err) => {
       console.error('发布失败:', err);
     });
   }

+ 2 - 2
examples/pureJS/js/index.js

@@ -253,7 +253,7 @@ window.onload = function () {
     },
     handlePublishScreen: function () {
       this.client.publish({
-        audio: true,
+        audio: false,
         video: false,
         screen: true
       }, err => {
@@ -349,4 +349,4 @@ window.onload = function () {
   }
 
   App.init();
-}
+}

+ 1 - 1
examples/react/src/pages/room/index.jsx

@@ -110,7 +110,7 @@ export default class Room extends Component {
     });
   }
   handlePublishScreen = () => {
-    this.client.publish({audio: true, video: false, screen: true}, err => {
+    this.client.publish({audio: false, video: false, screen: true}, err => {
       console.error('发布失败:', err);
     });
   }

+ 1 - 1
examples/vue/src/pages/Room.vue

@@ -135,7 +135,7 @@ export default {
       });
     },
     handlePublishScreen: function () {
-      this.client.publish({ audio: true, video: false, screen: true }, (err) => {
+      this.client.publish({ audio: false, video: false, screen: true }, (err) => {
         console.error('发布失败:', err);
       });
     },