lv_ffmpeg.h
API reference for lv_ffmpeg.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_ffmpeg_private.h
Summary
Functions
libs/ffmpeg/lv_ffmpeg.h:72function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a ffmpeg_player object |
path | const char * | video file path |
Returns: lv_result_t — LV_RESULT_OK: no error; LV_RESULT_INVALID: can't get the info.
libs/ffmpeg/lv_ffmpeg.h:79function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a ffmpeg_player object |
cmd | lv_ffmpeg_player_cmd_t | control commands |
libs/ffmpeg/lv_ffmpeg.h:86function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a ffmpeg_player object |
en | bool | true: enable the auto restart |
libs/ffmpeg/lv_ffmpeg.h:93function
lv_ffmpeg_player_set_decoder
Set the video decoder
void lv_ffmpeg_player_set_decoder(lv_obj_t *obj, const char *decoder_name)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a ffmpeg_player object |
decoder_name | const 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— paramcmd
Variables
libs/ffmpeg/lv_ffmpeg.h:28variable
lv_ffmpeg_player_class
const lv_obj_class_t lv_ffmpeg_player_classDependencies
How is this guide?
Last updated on