Skip to content

Commit 2a29e87

Browse files
docs: picker folders and Video Player playlists
Pick mode now enters a folder on a tap and selects it on a long press, and confirming without a selection returns the current folder; document that in FileExplorerActivity. The Video Player turns a folder into a playlist, so the formats page says so too.
1 parent 5dad798 commit 2a29e87

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎docs/apps/video-player.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ There is no H.264/H.265 or MPEG decode on the badge, and no scaling: frames are
2323

2424
The picker opens at `/sdcard/video` and falls back to `/sdcard/clips`, then `/sdcard`. Any clip whose name ends in `.avi`, `.mjpeg` or `.mjpg` is listed. The video player is also registered as a viewer for those extensions, so "Open with" from the file manager works.
2525

26+
### Folders and playlists
27+
28+
Tapping a folder in the picker **enters** it, so nested folders are reachable. To play a folder as a playlist, long-press the folder to select it (or just press **Confirm** while inside it) and confirm: every clip in it plays in name order, which is why a naming scheme like `01_intro.avi`, `02_demo.avi` is worth using.
29+
30+
When the last clip ends, playback stops and the player closes, unless `loop` was requested — then the folder starts over from the first clip. Each clip is started like a fresh file, so it gets its own frame rate from the container, its own soundtrack and its own timing report; a clip that cannot be played stops the playlist with its message rather than being skipped silently.
31+
2632
### Preparing clips
2733

2834
Both formats are plain MJPEG, which every desktop player opens without extra codecs. With `ffmpeg`:

‎docs/frameworks/file-explorer-activity.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The activity is registered for the `pick_file` action, so any app can ask the us
99
Two modes are supported:
1010

1111
- **`browse`** (default): navigate directories, open files, rename or delete them.
12-
- **`pick`**: select one or more files and return them to the caller. The `pick_file` action automatically uses pick mode, so callers do not need to set the `"mode"` extra.
12+
- **`pick`**: select one or more files and return them to the caller. The `pick_file` action automatically uses pick mode, so callers do not need to set the `"mode"` extra. Tapping a file toggles its selection; tapping a folder enters it (as in browse mode) and long-pressing a folder selects the whole folder.
1313

1414
## Launching
1515

@@ -67,6 +67,17 @@ When the user confirms the selection, the result callback receives:
6767
}
6868
```
6969

70+
### Navigating and selecting in pick mode
71+
72+
Pick mode browses folders exactly like the File Manager:
73+
74+
- **Tap a folder** to enter it. The listing follows, so a nested folder can be reached without leaving the picker.
75+
- **Tap a file** to toggle its selection, so several files can be picked at once.
76+
- **Long-press a file or folder** to toggle the selection the same way. On a folder this picks the folder itself rather than entering it, and the release that follows the long press does not navigate.
77+
- **Confirm** without a selection returns the current folder.
78+
79+
A folder in the result is only a path; what the caller does with it is up to the app. The Video Player, for example, plays every clip it contains in name order.
80+
7081
If no file is selected, the current directory path is returned instead:
7182

7283
```python

0 commit comments

Comments
 (0)