Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jun 25, 2024
1 parent 5c43489 commit 6dd39b1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions example/src/advanced/UseRTC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ export default function UseRTC() {
useEffect(() => {
let engine = createAgoraRtcEngine();
console.log(engine.getVersion());
// engine.initialize({
// appId: Config.appId,
// channelProfile: ChannelProfileType.ChannelProfileLiveBroadcasting,
// });
// setRtcVersion(engine.getVersion());
engine.initialize({
appId: Config.appId,
});
setRtcVersion(engine.getVersion());
return () => {
// engine.release();
engine.release();
};
}, []);

Expand Down

0 comments on commit 6dd39b1

Please sign in to comment.