/** Initialize camera parameters based on negotiated height, width */
 private void initializeCameraParams() {
   try {
     // Get the parameter to make sure we have the up-to-date value.
     ImsCamera imsCamera = mVideoCallManager.getImsCameraInstance();
     // Set the camera preview size
     if (mIsMediaLoopback) {
       // In loopback mode the IMS is hard coded to render the
       // camera frames of only the size 176x144 on the far end surface
       imsCamera.setPreviewSize(LOOPBACK_MODE_WIDTH, LOOPBACK_MODE_HEIGHT);
     } else {
       log(
           "Set Preview Size directly with negotiated Height = "
               + mVideoCallManager.getNegotiatedHeight()
               + " negotiated width= "
               + mVideoCallManager.getNegotiatedWidth());
       imsCamera.setPreviewSize(
           mVideoCallManager.getNegotiatedWidth(), mVideoCallManager.getNegotiatedHeight());
       imsCamera.setPreviewFpsRange(mVideoCallManager.getNegotiatedFps());
     }
   } catch (RuntimeException e) {
     loge("Error setting Camera preview size/fps exception=" + e);
   }
 }