Skip to content

Commit eed4f73

Browse files
author
xianing
committed
Merge branch 'staging' of https://github.com/AgoraIO/API-Examples into staging
2 parents 0d9c601 + 489c857 commit eed4f73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

iOS/APIExample/Examples/Advanced/JoinMultiChannel/JoinMultiChannel.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ extension JoinMultiChannelMain: AgoraRtcEngineDelegate {
184184
extension JoinMultiChannelMain: AgoraRtcChannelDelegate
185185
{
186186
func rtcChannelDidJoin(_ rtcChannel: AgoraRtcChannel, withUid uid: UInt, elapsed: Int) {
187-
LogUtils.log(message: "Join \(rtcChannel.getChannelId() ?? "") with uid \(uid) elapsed \(elapsed)ms", level: .info)
187+
LogUtils.log(message: "Join \(rtcChannel.getId() ?? "") with uid \(uid) elapsed \(elapsed)ms", level: .info)
188188
}
189189
/// callback when warning occured for a channel, warning can usually be ignored, still it's nice to check out
190190
/// what is happening
@@ -193,7 +193,7 @@ extension JoinMultiChannelMain: AgoraRtcChannelDelegate
193193
/// cn: https://docs.agora.io/cn/Voice/API%20Reference/oc/Constants/AgoraWarningCode.html
194194
/// @param warningCode warning code of the problem
195195
func rtcChannel(_ rtcChannel: AgoraRtcChannel, didOccurWarning warningCode: AgoraWarningCode) {
196-
LogUtils.log(message: "channel: \(rtcChannel.getChannelId() ?? ""), warning: \(warningCode.description)", level: .warning)
196+
LogUtils.log(message: "channel: \(rtcChannel.getId() ?? ""), warning: \(warningCode.description)", level: .warning)
197197
}
198198

199199
/// callback when error occured for a channel, you are recommended to display the error descriptions on demand
@@ -222,7 +222,7 @@ extension JoinMultiChannelMain: AgoraRtcChannelDelegate
222222
videoCanvas.view = channel1 == rtcChannel ? channel1RemoteVideo.videoView : channel2RemoteVideo.videoView
223223
videoCanvas.renderMode = .hidden
224224
// set channelId so that it knows which channel the video belongs to
225-
videoCanvas.channelId = rtcChannel.getChannelId()
225+
videoCanvas.channelId = rtcChannel.getId()
226226
agoraKit.setupRemoteVideo(videoCanvas)
227227
}
228228

@@ -242,7 +242,7 @@ extension JoinMultiChannelMain: AgoraRtcChannelDelegate
242242
videoCanvas.view = nil
243243
videoCanvas.renderMode = .hidden
244244
// set channelId so that it knows which channel the video belongs to
245-
videoCanvas.channelId = rtcChannel.getChannelId()
245+
videoCanvas.channelId = rtcChannel.getId()
246246
agoraKit.setupRemoteVideo(videoCanvas)
247247
}
248248
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class RTMPStreamingMain: BaseViewController {
180180
// therefore we have to create a livetranscoding object and call before addPublishStreamUrl
181181
transcoding.size = CGSize(width: CANVAS_WIDTH, height: CANVAS_HEIGHT)
182182
agoraKit.setLiveTranscoding(transcoding)
183-
agoraKit.startRtmpStreamWithTranscoding(rtmpURL, transcoding: transcoding)
183+
agoraKit.startRtmpStream(withTranscoding: rtmpURL, transcoding: transcoding)
184184
}
185185
else{
186186
agoraKit.startRtmpStreamWithoutTranscoding(rtmpURL)

0 commit comments

Comments
 (0)