Skip to content

Commit

Permalink
Adapt to the new api
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongqiang committed Apr 12, 2024
1 parent 9a51d35 commit 7dee89f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class LiveStreamingMain: BaseViewController {

@IBOutlet weak var centerStage: Picker!
func initSelectCentetStagePicker() {
centerStage.isEnabled = agoraKit.isSupportPortraitCenterStage()
centerStage.isEnabled = agoraKit.isCameraCenterStageSupported()
let params: [String: AgoraCameraStabilizationMode] = ["auto": .auto,
"level1": .level1,
"level2": .level2,
Expand All @@ -275,7 +275,7 @@ class LiveStreamingMain: BaseViewController {
let index = self.selectRolePicker.indexOfSelectedItem
let key = datas[index]
let mode = params[key]
self.agoraKit.enablePortraitCenterStage(mode != .off)
self.agoraKit.enableCameraCenterStage(mode != .off)
}
}

Expand Down

0 comments on commit 7dee89f

Please sign in to comment.