Skip to content

Commit

Permalink
* update photos's readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Dec 2, 2024
1 parent 7f07b32 commit ecc068e
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions projects/app_photos/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
# Readme
# README
Displaying Images and Playing Videos

The default picture path is: `/maixapp/share/picture`, you can also use `app::get_picture_path()` to get the picture path.
## Displaying Images
When the program starts, it will read and display images from the `/maixapp/share/picture/` directory. The program supports `jpg` and `png` image formats. It is recommended that the image resolution does not exceed `2560x1440`, and the width must be a multiple of `32`.

Below is a reference for the format of saving images:

```shell
/maixapp/share/picture
/2024-01-02
0.jpg
1.jpg
2.jpg
/2024-02-03
0.jpg
1.jpg
2.jpg
```
## Displaying Videos
When the program starts, it will read videos from the `/maixapp/share/video/` directory. The program supports playing, pausing, and setting the playback position. Only `mp4` videos encoded in the `H.264` format are supported. It is recommended that the video resolution does not exceed `2560x1440`, and the width must be a multiple of `32`.

0 comments on commit ecc068e

Please sign in to comment.