dusenyao 3 éve
szülő
commit
ea06d837fb

+ 9 - 0
src/views/live/common.js

@@ -192,6 +192,15 @@ export function getDevice(options) {
   rtc.getDevice(options);
 }
 
+// 查询网络节点
+export function getNetPoint() {
+  rtc.getNetPoint({
+    success(data) {
+      console.log('获取网络节点成功', data);
+    }
+  });
+}
+
 /**
  * 房间配置项更新
  * @param {Object} option 房间配置项 (具体看2.0 https://doc.bokecc.com/class/developer/web/chat.html),以键值对的形式传

+ 4 - 0
src/views/live/teacher/index.vue

@@ -546,6 +546,10 @@ export default {
       this.dialogVisibleDevice = true;
     },
 
+    getNetPoint() {
+      common.getNetPoint();
+    },
+
     dialogDeviceClose(device) {
       this.$store.commit(`app/${app.SET_DEVICE}`, device);
       this.dialogVisibleDevice = false;

+ 2 - 1
src/views/live/teacher/live.js

@@ -15,7 +15,8 @@ export {
   closeVideo,
   chatRoll,
   updateMcResult,
-  reconnection
+  reconnection,
+  getNetPoint
 } from '@/views/live/common';
 
 /**