提交工单
咨询集成、功能及报价等问题
Products / Plugins:Call Kit / Live Streaming Kit
Platform / Framework:iOS
Last updated:2023-02-09 18:24
This article introduces how to update the UIKits with the plugin (ZegoUIKitSignalingPlugin) from V1.x.x to V2.0.0.
Upgrade the SDK to V2.0.0 or later.
Modify part of the code.
Change the code used to initialize the SDK.
If your project used
ZegoUIKitPrebuiltCallInvitationConfig
class, then the code used for initialization needs to delete the first parameter.
// Version 1.x.x
let config = ZegoUIKitPrebuiltCallInvitationConfig([ZegoUIKitSignalingPlugin()], notifyWhenAppRunningInBackgroundOrQuit: true, isSandboxEnvironment: false)
// Version 2.0.0
let config = ZegoUIKitPrebuiltCallInvitationConfig(notifyWhenAppRunningInBackgroundOrQuit: true, isSandboxEnvironment: false)
Upgrade the SDK to V2.0.0 or later.
Modify part of the code.
Change the code used to initialize the SDK.
// Version 1.x.x
let config = ZegoUIKitPrebuiltLiveStreamingConfig.host([ZegoUIKitSignalingPlugin()])
let config = ZegoUIKitPrebuiltLiveStreamingConfig.audience([ZegoUIKitSignalingPlugin()])
// Version 2.0.0
let config = ZegoUIKitPrebuiltLiveStreamingConfig.host(enableCoHosting: true)
let config = ZegoUIKitPrebuiltLiveStreamingConfig.audience(enableCoHosting: true)