示例#1
0
 /**
  * Sets the requested frame rate in frames per second. If the exact requested value is not not
  * available, the best matching available value is selected. Default: 30.
  */
 public Builder setRequestedFps(float fps) {
   if (fps <= 0) {
     throw new IllegalArgumentException(
         mCameraSource.mContext.getString(R.string.invalid_fps) + fps);
   }
   mCameraSource.mRequestedFps = fps;
   return this;
 }