One cannot set mode and deviceId. Use camera::reset() instead.