Aila_SetCameraFramerate
Change the frame rate of the back camera.
Signature
- Objective-C
- Swift
void Aila_SetCameraFramerate(int fps);
func Aila_SetCameraFramerate(_ fps: Int32)
Parameters
fps- The frame rate to use, in frames per second. Pass-1to clear the override and return to Aila's default frame rate.
Description
Overrides the back camera's frame rate. This is intended for non-standard use cases, such as matching the frame rate to the frequency of artificial lighting in countries operating at 50Hz.
Usage
- Objective-C
- Swift
// Match 50Hz lighting
Aila_SetCameraFramerate(50);
// Return to the default frame rate
Aila_SetCameraFramerate(-1);
// Match 50Hz lighting
Aila_SetCameraFramerate(50)
// Return to the default frame rate
Aila_SetCameraFramerate(-1)
warning
A frame rate that doesn't match the frequency of the local artificial lighting (e.g. 50Hz vs 60Hz regional power standards) may cause visible flickering or banding in the video feed.
See Also
- Aila_GetAVCaptureSession - Get internal AVCaptureSession
- Aila_ReleaseCamera - Take full control of device camera