Skip to content

Commit

Permalink
upd video player
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 19, 2023
1 parent 35865a9 commit d541476
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 110 deletions.
4 changes: 4 additions & 0 deletions non_catalog_apps/video_player/README_CATALOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Video player
A Flipper Zero application to play video files (with sound). Uses custom video file format. Is proven to work at 30 FPS and 44100 Hz audio sample rate with full 128 by 64 pixels resolution. Maximum video length is limited only by your SD card capacity (at least it works with 6 hours long video). Supports fast forward, rewind and pause. Obeys device's stealth mode.

See github repo to find the guide for how to convert video files.
10 changes: 5 additions & 5 deletions non_catalog_apps/video_player/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ App(
cdefines=["APP_VIDEO_PLAYER"],
stack_size=2 * 1024,
order=90,
fap_version=(0, 1),
fap_description="An app that plays video along with sound on Flipper Zero.",
fap_author="LTVA",
fap_version=(0, 2),
fap_description="An app that plays video along with sound on Flipper Zero.",
fap_author="LTVA",
fap_weburl="https://github.com/LTVA1/flipper_video_player",
fap_icon="video_player.png",
fap_icon_assets="images",
fap_icon="video_player.png",
fap_icon_assets="images",
fap_category="Media",
)
10 changes: 10 additions & 0 deletions non_catalog_apps/video_player/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Video Player v0.2 #

## Added ##
- Rewind and fast forward with right and left arrow keys respectively
- Obey device's stealth mode
- If horizontal resolution is less that 128 pixels video is centered on the screen

# Video Player v0.1 #

- Initial release
4 changes: 4 additions & 0 deletions non_catalog_apps/video_player/init_deinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ void deinit_player(VideoPlayerApp* player) {
free(player->buffer);
}

if(player->fake_audio_buffer) {
free(player->fake_audio_buffer);
}

furi_pubsub_unsubscribe(player->input, player->input_subscription);

player->canvas = NULL;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d541476

Please sign in to comment.