ソースを参照

[demo] - 删除无用代码

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

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

@@ -116,17 +116,6 @@ export default class Room extends Component {
       }
       }
     });
     });
 
 
-    this.client.on("record-notify", (Error, RecordResult) => {
-      if (Error !== undefined) {
-        alert(`录制失败: ${Error}`);
-      }
-    });
-
-    this.client.on("relay-notify", (Error, RecordResult) => {
-      if (Error !== undefined) {
-        alert(`转推失败: ${Error}`);
-      }
-    });
     window.addEventListener("beforeunload", this.handleLeaveRoom);
     window.addEventListener("beforeunload", this.handleLeaveRoom);
   }
   }