Skip to content

Commit 68a8781

Browse files
committed
NEW: switchChannel2 api for iOS
1 parent d6488f5 commit 68a8781

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

iOS/APIExample/Examples/Advanced/QuickSwitchChannel/QuickSwitchChannel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ extension QuickSwitchChannel : UIPageViewControllerDelegate
270270

271271
// switch to currentVC and its hosted channel
272272
setHostViewController(currentVC)
273-
agoraKit.switchChannel(byToken: nil, channelId: currentVC.channel.channelName, joinSuccess: nil)
273+
let option = AgoraRtcChannelMediaOptions()
274+
agoraKit.switchChannel(byToken: nil, channelId: currentVC.channel.channelName, options: option)
274275
}
275276
}

0 commit comments

Comments
 (0)