Skip to content

Commit 7af9443

Browse files
author
HeZhengQing
committed
[FIX] rtmp user offline toast
1 parent 704a3b5 commit 7af9443

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

iOS/APIExample-SwiftUI/APIExample-SwiftUI/Examples/Advanced/RTMPStream/RTMPStreamRTC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ extension RTMPStreamRTC: AgoraRtcEngineDelegate {
239239
isPublished = true
240240
ToastView.show(text: "RTMP Publish Success")
241241
} else if state == .failure {
242-
ToastView.show(text: "RTMP Publish Failed: \(reason.rawValue)")
242+
243243
} else if state == .idle {
244244
isPublished = false
245245
ToastView.show(text: "RTMP Publish Stopped")

iOS/APIExample/APIExample/Examples/Advanced/RTMPStreaming/RTMPStreaming.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ extension RTMPStreamingMain: AgoraRtcEngineDelegate {
302302
self.showAlert(title: "Notice", message: "RTMP Publish Success")
303303
isPublished = true
304304
} else if state == .failure {
305-
// self.showAlert(title: "Error", message: "RTMP Publish Failed: \(errCode.rawValue)")
305+
306306
} else if state == .idle {
307307
self.showAlert(title: "Notice", message: "RTMP Publish Stopped")
308308
isPublished = false

0 commit comments

Comments
 (0)