docs: private void onSegmentUploaded(S3UploadEvent uploadEvent) {
          if (mDeleteAfterUploading) {
              boolean deletedFile = uploadEvent.getFile().delete();
              if (VERBOSE)
                  Log.i(TAG, "Deleting uploaded segment. " + uploadEvent.getFile().getAbsolutePath() + " Succcess: " + deletedFile);
          }
          try {
              if (isKitKat() && mConfig.isAdaptiveBitrate() && isRecording()) {
                  mLastRealizedBandwidthBytesPerSec = uploadEvent.getUploadByteRate();
                  // Adjust video encoder bitrate per bandwidth of just-completed upload
                  if (VERBOSE) {
                      Log.i(TAG, "Bandwidth: " + (mLastRealizedBandwidthBytesPerSec / 1000.0) + " kBps. Encoder: " + ((mVideoBitrate + mConfig.getAudioBitrate()) / 8) / 1000.0 + " kBps");
                  }
                  if (mLastRealizedBandwidthBytesPerSec < (((mVideoBitrate + mConfig.getAudioBitrate()) / 8))) {
                      // The new bitrate is equal to the last upload bandwidth, never inferior to MIN_BITRATE, nor superior to the initial specified bitrate
                      mVideoBitrate = Math.max(Math.min(mLastRealizedBandwidthBytesPerSec * 8, mConfig.getVideoBitrate()), MIN_BITRATE);
                      if (VERBOSE) {
                          Log.i(TAG, String.format("Adjusting video bitrate to %f kBps. Bandwidth: %f kBps",
                                  mVideoBitrate / (8 * 1000.0), mLastRealizedBandwidthBytesPerSec / 1000.0));
                      }
                      adjustVideoBitrate(mVideoBitrate);
                  }
              }
          } catch (Exception e) {
              Log.i(TAG, "OnSegUpload excep");
              e.printStackTrace();
          }
      }