Following the subtitle (Gallery video player ignores subtitle tracks (QT_GSTREAMER_PLAYBIN_FLAGS=0) — fix + subtitle switch button) and audio track (Gallery video player can’t switch audio tracks (multi-language files): audio track button) topics, I kept improving the video player of the Gallery on my Jolla Phone (2026), Sailfish OS 5.2.0.22. Here is what it does now.
Behaviour
| Where / gesture | When | What happens |
|---|---|---|
| Subtitle button (speech bubble), tap | the file has at least one subtitle track | next subtitle track, then “None”, then the first one again; the choice is shown for 2.5 s above the buttons |
| Subtitle button, long press | at least one subtitle track | a list of all subtitle tracks plus “None” appears above the buttons, the current one highlighted; tap a line to pick it, tap beside the list to close it without changing anything |
| Audio button (speaker), tap | shown only when the file has two audio tracks or more | next audio track, wrapping around; the choice is shown for 2.5 s |
| Audio button, long press | two audio tracks or more | a list of the audio tracks (language, title, channels), the current one highlighted; tap a line to pick it |
| Any track list | while the list is open | the controls do not hide themselves |
| Vertical swipe, left half of the picture | controls hidden, video loaded | screen brightness, 100 levels; a small sun indicator with a bar and a percentage |
| Vertical swipe, right half of the picture | controls hidden, video loaded | volume, 100 levels: the system volume step (same as the volume keys) plus a fine attenuation of the player between two steps; a speaker indicator |
| Brightness after watching | next video, leaving the video, or the app going to the background | the original brightness and the automatic brightness setting are restored (even after a crash, at the next video) |
| Vertical swipe | controls shown | unchanged: closes the video, as before |
| Tap / double tap on the picture | always | unchanged: show/hide the controls / jump 10 s forward |
| Top left corner, where the [i] button was | video, controls shown | the file name, its size and the picture definition, e.g. “This Is It (2009).mkv — 2.6 GB · 1920×1080”, without leaving the video (photos keep the [i] button) |
| Bluetooth headset out of range | video playing in the headset | the system pauses the video; when the headset comes back, playback resumes by itself; a pause made by the user is never resumed |
Screenshots (film: Elephants Dream, © 2006 Blender Foundation / Netherlands Media Art Institute, CC-BY 2.5, www.elephantsdream.org)
Brightness, left half, controls hidden:
Volume, right half, controls hidden:
File name, size and definition at the top left, video paused:
Subtitle list, long press on the speech bubble:
Audio track list, long press on the speaker (labels in French on my phone):
Fixes found on the way
- Seeking (double tap or position slider) with subtitles shown could freeze the whole Gallery: the subtitle overlay ran out of video buffers. Fixed, and added to the pull request for the subtitle button.
- Qt Multimedia logged an assertion
gst_pad_probe_info_get_event: assertion … failedfor every video frame, flooding the journal. Fixed inqtmultimedia: [gstreamer] Only query the probe data that was delivered in handleVideoResolutionTagProbe by bigbob-fun · Pull Request #10 · sailfishos/qtmultimedia · GitHub - A Bluetooth headset that drops out of range left the video paused forever (bug report: Video in Gallery stays paused forever after a Bluetooth headset drops out of range and comes back).
Under the hood: a Patchmanager patch on GalleryOverlay.qml and VideoPoster.qml, plus a small QML module in C++ (GStreamer stream selection, PulseAudio volume and outputs, MCE brightness). All tested step by step on the phone, including in the Gallery sandbox.
Pull requests: [gallery] Render subtitle tracks in the video player by bigbob-fun · Pull Request #2 · sailfishos/jolla-gallery · GitHub (enable the subtitle flag), https://github.com/sailfishos/sailfish-components-gallery/pull/7 (subtitle button + seek freeze fix), [components-gallery] Add an audio track button to the video player by bigbob-fun · Pull Request #8 · sailfishos/sailfish-components-gallery · GitHub (audio track button), [gstreamer] Only query the probe data that was delivered in handleVideoResolutionTagProbe by bigbob-fun · Pull Request #10 · sailfishos/qtmultimedia · GitHub (assertion fix).
AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.




