Skip to content

Commit

Permalink
[iOS]fix fusion CDN bug(NMS-21901).
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Jun 27, 2024
1 parent b80b9fc commit a37ad70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ class FusionCDNHost: BaseViewController {
@IBAction func setStreaming(sender: AGButton) {
if rtcStreaming {
stopRtcStreaming()

resetUI()
} else if cdnStreaming {
stopRskStreaming()
resetUI()

} else {
switchToRskStreaming()
}
Expand Down Expand Up @@ -245,6 +244,7 @@ class FusionCDNHost: BaseViewController {
cdnStreaming = false
rtcSwitcher.isEnabled = true
agoraKit.stopDirectCdnStreaming()
agoraKit.startPreview()
}

private func resetUI() {
Expand Down

0 comments on commit a37ad70

Please sign in to comment.