1 #include "../../lv_examples.h"
2 #if LV_BUILD_EXAMPLES
3 #if LV_USE_FFMPEG
4 
5 /**
6  * Open an image from a file
7  */
lv_example_ffmpeg_1(void)8 void lv_example_ffmpeg_1(void)
9 {
10     lv_obj_t * img = lv_img_create(lv_scr_act());
11     lv_img_set_src(img, "./lvgl/examples/libs/ffmpeg/ffmpeg.png");
12     lv_obj_center(img);
13 }
14 
15 #else
16 
lv_example_ffmpeg_1(void)17 void lv_example_ffmpeg_1(void)
18 {
19     /*TODO
20      *fallback for online examples*/
21 
22     lv_obj_t * label = lv_label_create(lv_scr_act());
23     lv_label_set_text(label, "FFmpeg is not installed");
24     lv_obj_center(label);
25 }
26 
27 #endif
28 #endif
29