     
     override func viewDidLoad() {
         super.viewDidLoad()
-        agoraKit=AgoraRtcEngineKit.sharedEngine(withAppId: AgoraSetting.AgoraAppId, delegate: self)
-        agoraKit.enableVideo()
+        initAgoraEngine()
+        setupVideo()
         setupLocalVideo()
         agoraKit.joinChannel(byKey: nil, channelName: "demo", info: nil, uid: 0) { [weak self](sid,uid,elapsed)->Void in
             if let weakSelf=self{

    
        
    }
    func setupLocalVideo(){
        agoraKit.setVideoProfile(._VideoProfile_360P, swapWidthAndHeight: false)
        let videoCanvas=AgoraRtcVideoCanvas()
        videoCanvas.uid=localUid
        videoCanvas.view = remoteView
        videoCanvas.renderMode = .render_Fit
        
    }
    
    
    @IBAction func handUp(_ sender: Any) {

        case 1:
            return 1
        case 2:
            return 2
        case 3:
            return 2
        case 4:
