imaginary-cloud / CameraManager

Simple Swift class to provide all the configurations you need to create custom camera view in your app
MIT License
1.37k stars 324 forks source link

Camera turn to blue screen in latest version 5.1.2 #228

Open sadabios opened 4 years ago

sadabios commented 4 years ago

When i change camera output mode then its show blue screen for some second if my output mode is video with mic and change to cameraManager.cameraOutputMode = .stillImage then it show blue screen and vice versa for stillimage to videowithmic

please help its very urgent

torrao commented 4 years ago

@sadabios

can you provide me some code to try to reproduce this?

sadabios commented 4 years ago

VPCX1270.MP4.zip @torrao i upload a video i m changing camera outputmode from top bar if cameraManager.cameraOutputMode == .stillImage{ if !checkMicPermission(){ alertToEncourageMicrophoneAccessWhenApplicationStarts() return } videoStampOn = true setRation(index: 0) changeImageWithAnimation(imageView:self.imgViewClick,toImage:UIImage(named: "icvideo")!) DispatchQueue.main.async { self.cameraManager.cameraOutputMode = .videoWithMic } arrImgsTop[2] = "Group 181"

               // cameraManager.cameraOutputMode = .videoWithMic
            }else{
                arrImgsTop[2] = "Video"
                changeImageWithAnimation(imageView:self.imgViewClick,toImage:UIImage(named: "ic_click")!)
                       videoStampOn = false
                        setRation(index: getratioInt())
                       if imgViewlastClicked.image != nil{
                           imgViewlastClicked.fadeIn(alpha: 1)
                       }
                        DispatchQueue.main.async {
                                  self.cameraManager.cameraOutputMode = .stillImage
                              }
sadabios commented 4 years ago

@torrao can u please suggest me a solution for this?

ahmedsafadii commented 4 years ago

it's same for me :/