ソースを参照

删除部分代码

zhangjizhe 5 年 前
コミット
19981ab8ab
1 ファイル変更0 行追加5 行削除
  1. 0 5
      examples/react/src/pages/room/index.jsx

+ 0 - 5
examples/react/src/pages/room/index.jsx

@@ -1,13 +1,8 @@
 import React, { Component } from "react";
 import React, { Component } from "react";
 import sdk, { Client } from "urtc-sdk";
 import sdk, { Client } from "urtc-sdk";
-
 import config from "../../config";
 import config from "../../config";
 import StreamInfo from "../../components/StreamInfo";
 import StreamInfo from "../../components/StreamInfo";
 import "./index.css";
 import "./index.css";
-sdk.setServers({
-  api: "https://pre.urtc.com.cn",
-  wssUrl:'impre.urtc.com.cn:3103'
-});
 const { AppId, AppKey } = config;
 const { AppId, AppKey } = config;
 
 
 // 此处使用固定的房间号的随机的用户ID,请自行替换
 // 此处使用固定的房间号的随机的用户ID,请自行替换