Browse Source

[demo] - 删除无用代码

kevin.song 5 years ago
parent
commit
f5777b208f
1 changed files with 0 additions and 11 deletions
  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);
   }