Browse Source

[demo] - 统一房间号

kevin.song 5 years ago
parent
commit
d7201a04cf

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

@@ -17,7 +17,7 @@ import config from '../../config';
 const { AppId, AppKey } = config;
 
 // 此处使用固定的房间号的随机的用户ID,请自行替换
-const RoomId = 'ssss02';
+const RoomId = 'test';
 const UserId = Math.floor(Math.random() * 1000000).toString();
 
 console.log('UCloudRTC sdk version: ', sdk.version);

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

@@ -5,7 +5,7 @@ window.onload = function () {
   } = window.config || {};
 
   // 此处使用固定的房间号的随机的用户ID,请自行替换
-  const RoomId = "ssss02";
+  const RoomId = "test";
   const UserId = Math.floor(Math.random() * 1000000).toString();
 
   if (!AppId || !AppKey) {

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

@@ -6,7 +6,7 @@ import "./index.css";
 const { AppId, AppKey } = config;
 
 // 此处使用固定的房间号的随机的用户ID,请自行替换
-const RoomId = "ssss123145";
+const RoomId = "test";
 const UserId = Math.floor(Math.random() * 1000000).toString();
 
 console.log("UCloudRTC sdk version: ", sdk.version);
@@ -22,8 +22,6 @@ export default class Room extends Component {
       localStreams: [],
       remoteStreams: [],
     };
-    this.bucket = "urtc-test";
-    this.region = "cn-bj";
   }
 
   componentDidMount() {

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

@@ -32,7 +32,7 @@ import config from '../config';
 const { AppId, AppKey } = config;
 
 // 此处使用固定的房间号的随机的用户ID,请自行替换
-const RoomId = 'ssss02';
+const RoomId = 'test';
 const UserId = Math.floor(Math.random() * 1000000).toString();
 
 console.log('UCloudRTC sdk version: ', sdk.version);