camera_force_video_keyframe()

Instruct the video encoder to generate a keyframe on demand when encoding video

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_force_video_keyframe(camera_handle_t handle)

Arguments:

handle
The handle returned by a call to the camera_open() function.

Library:

libcamapi

Description:

Typically, you would request a new keyframe when an error occurs while recording video, such as a network or system error. The new keyframe allows you to recover from the error as quickly as possible.

Only call this function after the video encoder has been started with a call to camera_start_video() or camera_start_encode().

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.