Can't connect the camera- what to do?
There could be two solutions for it:


Other Programmes might have been using the camera. Uninstall or force stop that app and try restarting your phone. It should work.
Check whether You have given all permissions to camera in security option in settings or in the home screen. Since i had a miui ROM so i know permissions in miui is very hard to handle.