Repository navigation
feat(diagnostics): report QtWebEngine media codecs (#907) - #1028
Open
CookieCaptainD wants to merge 2 commits into
Open
CookieCaptainD wants to merge 2 commits into
CookieCaptainD wants to merge 2 commits into
Conversation
Add MediaCodecProbe, a read-only probe that runs once per loaded page and asks HTMLMediaElement.canPlayType plus MediaSource.isTypeSupported for H.264/AAC. It keeps only a fixed allowlist, never reads page content, media, network or storage, and never changes playback, flags or lifecycle. Expose the result as media_codecs in the runtime diagnostics, the manual problem report and its Markdown preview. Until a page loads, or when it is gone, the block stays measured=false with an explicit reason instead of inferring support. Document the evidence limit: advertised support does not prove that a specific file decodes or renders. Document package codec coverage: Flatpak and AppImage bundle a Qt WebEngine with proprietary codecs, while Debian's build does not, so the .deb cannot play chat videos or voice notes. Note that ARM64 Linux usually decodes in software, so high-resolution playback may stutter without meaning a missing codec (rafatosta#907). Tests: - flatpak_python tests/test_media_codec_probe.py -v (12 tests) - flatpak_python -m unittest discover -s tests -q (802 tests; the 22 failures and 4 errors are identical to the unmodified HEAD baseline, verified in a separate worktree) - flatpak_python tests/test_documentation_structure.py -v - flatpak_python tests/check_unused_code.py --packages-only - flatpak_python -m compileall -q zapzap tests tools run.py - git diff --check - Probe executed inside the installed aarch64 Flatpak (Qt 6.11.2): H.264 and AAC reported as "probably", MSE true, and a 720p H.264/AAC sample presented frames while creating a PulseAudio stream.
Show a persistent notice with one explicit "Unmute" action while the global mute is active, so videos and voice messages playing silently are not mistaken for a codec or playback failure. The state was previously visible only as a toolbar, tray or floating-panel icon. The notice follows the persisted state at startup and every toggle, and its action unmutes instead of toggling a stale value. Translate the notice for Brazilian Portuguese, European Portuguese, Italian and Turkish, and fill the missing "Unmute" entries in the first three catalogs. Tests: - flatpak_python tests/test_global_mute.py -v - flatpak_python -m unittest discover -s tests -q (same 22 failures and 4 errors as the unmodified HEAD baseline) - msgfmt --check --check-format on pt_BR, pt_PT, it and tr - Offscreen render of the muted window in pt_PT to confirm the notice text and the "Ativar som" action
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #907.
Summary
HTMLMediaElement.canPlayTypeandMediaSource.isTypeSupportedfor H.264/AAC against a fixed allowlist. It reads no page content, media, network or storage, and changes no playback or flags. The result appears asmedia_codecsin the runtime diagnostics, the manual problem report and its Markdown preview, withmeasured: falseplus a reason until a page loads. The report notes the limit: advertised support does not prove that a specific file decodes.python3-pyqt6.qtwebengineships without proprietary codecs, so the.debcannot play chat video or voice notes; RPM/COPR/Snap depend on the distribution build. It points to Settings → Report a problem → Runtime information and notes that ARM64 software decoding can stutter without missing codecs.Unmuteentries in pt_BR/pt_PT/it.Evidence for the aarch64/Flatpak half of the report
Verified on Asahi Fedora Remix 45 (aarch64), ZapZap Flatpak 7.5.1, Qt WebEngine 6.11.2, KDE Plasma/Wayland:
canPlayTypefor H.264 and AAC →probably;MediaSource.isTypeSupported→truefor both.system/audio_muted=true; the tray action read "Unmute").The Debian
.deblimitation reported in #907 is real and does not reproduce in the aarch64 Flatpak.Testing
flatpak_python -m unittest discover -s tests -q: 802 tests, 22 failures and 4 errors. The same 22/4 fail on unmodifiedmainin a separate worktree (zh_CN catalog, macOS packaging, dictionary UI, account context menu), so no new failures.tests/test_media_codec_probe.py(12 tests, including a real WebEngine run) and two global-mute notice tests intest_global_mute.py.tests/test_documentation_structure.py -v,tests/check_unused_code.py --packages-only,compileall,git diff --check.msgfmt --check --check-formaton the changed pt_BR, pt_PT, it and tr catalogs.Not included
Commits
feat(diagnostics): report QtWebEngine media codec supportfeat(browser): surface the global mute above the account pages