lv_ffmpeg.h

API reference for lv_ffmpeg.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_ffmpeg_private.h

Functions

lv_ffmpeg_player_set_src

Set the path of the file to be played.

 
lv_result_t lv_ffmpeg_player_set_src(lv_obj_t *obj, const char *path)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a ffmpeg_player object
pathconst char *video file path

Returns: lv_result_t — LV_RESULT_OK: no error; LV_RESULT_INVALID: can't get the info.

lv_ffmpeg_player_set_cmd

Set command control video player

 
void lv_ffmpeg_player_set_cmd(lv_obj_t *obj, lv_ffmpeg_player_cmd_t cmd)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a ffmpeg_player object
cmdlv_ffmpeg_player_cmd_tcontrol commands

lv_ffmpeg_player_set_auto_restart

Set the video to automatically replay

 
void lv_ffmpeg_player_set_auto_restart(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a ffmpeg_player object
enbooltrue: enable the auto restart

lv_ffmpeg_player_set_decoder

Set the video decoder

 
void lv_ffmpeg_player_set_decoder(lv_obj_t *obj, const char *decoder_name)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a ffmpeg_player object
decoder_nameconst char *decoder name

Enums

lv_ffmpeg_player_cmd_t

Name
LV_FFMPEG_PLAYER_CMD_START
LV_FFMPEG_PLAYER_CMD_STOP
LV_FFMPEG_PLAYER_CMD_PAUSE
LV_FFMPEG_PLAYER_CMD_RESUME
LV_FFMPEG_PLAYER_CMD_LAST
Used by 1 function
  • lv_ffmpeg_player_set_cmd — param cmd

Variables

lv_ffmpeg_player_class

 
const lv_obj_class_t lv_ffmpeg_player_class

Dependencies

Indirect dependencies

How is this guide?

Last updated on

On this page