Skip to content

Commit 703600f

Browse files
author
zhaoyongqiang
committed
离开频道销毁RTC
1 parent b1a33b0 commit 703600f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

iOS/APIExample/APIExample/Examples/Advanced/FusionCDN/FusionCDN.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ class FusionCDNHost: BaseViewController {
276276
else if cdnStreaming {
277277
agoraKit.stopDirectCdnStreaming()
278278
}
279+
AgoraRtcEngineKit.destroy()
279280
}
280281
}
281282
}
@@ -462,6 +463,7 @@ class FusionCDNAudience: BaseViewController {
462463
agoraKit.leaveChannel { (stats) -> Void in
463464
LogUtils.log(message: "left channel, duration: \(stats.duration)", level: .info)
464465
}
466+
AgoraRtcEngineKit.destroy()
465467
}
466468
}
467469

0 commit comments

Comments
 (0)