SUMMARY When compared to 5.12, 5.14 with WebEngine BaseApp is able to playback less web -provided videos than before. Not sure whether its related to changes in runtime packaging upstream or some other changes. Reporting it here to, as I don't think its Angelfish issue. STEPS TO REPRODUCE 1. Install Angelfish and other Flatpak packages. My current configuration on x86_64 has org.freedesktop.Platform.openh264 as an extension. That extension is not available on ARM. On 5.12, we used to have org.freedesktop.Platform.html5-codecs (x86 and arm), which doesn't seem to be available anymore. 2. On x86_64, videos seem to play, but are jumping back and forth during a playback. (see examples below) 3. On ARM 32 (Sailfish), I get no playback with the following errors [79:147:0222/143109.039453:ERROR:render_media_log.cc(27)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"video decoder initialization failed"} [79:79:0222/143109.041734:ERROR:render_media_log.cc(27)] MediaEvent: PIPELINE_ERROR DECODER_ERROR_NOT_SUPPORTED EXAMPLE URLs https://twitter.com/jumpersworld_/status/1230945836449849345 https://www.bbc.com/news/av/world-us-canada-51581309/us-election-2020-what-do-young-voters-want-in-nevada All worked as it should in 5.12. ARM and x86_64 played videos well. SOFTWARE/OS VERSIONS Flatpak Platform: 5.14 x86_64 - Gentoo PC ARM - Flatpak running on Sailfish OS (ARM32 bit on ARM64bit hardware) ADDITIONAL INFORMATION There is also org.freedesktop.Platform.ffmpeg-full which I don't know really how to use. Maybe that could help somehow?
The issue is resolved on the application level. We have to include ffmpeg-full extension by adding ``` "add-extensions": { "org.freedesktop.Platform.ffmpeg-full": { "directory": "lib/ffmpeg", "add-ld-path": ".", "version": "19.08" } }, "cleanup-commands": [ "mkdir -p ${FLATPAK_DEST}/lib/ffmpeg" ], ``` to our Flatpak build files (adjust accordingly). When added, Angelfish was able to play the videos reported in the original issue.
Adding this to the io.qt.qtwebengine.BaseApp would surely be a better fix, no? Thanks for the investigation!
Maybe it will be better. Then the apps wishing to use it would just have to inherit it from the base app, right?
That's my assumption, yes. We do it in org.kde.Platform, I assume for BaseApps it works as well.