gs-screenshot: Support videos as screenshot
I am using Fedora 36, Gnome Wayland, rpm based.
https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-screenshots
describes that a graphical application can have screenshots and videos:
<screenshots/> #
Visual components (like fonts or graphical applications) may choose to add one or multiple screenshots to their metadata. Screenshots can be either a video or a static image.
And:
The value of the <video/> tag is a direct HTTP/HTTPS URL to a video uploaded to a public location on the web. The video must be in a Matroska (.mkv) or WebM container and use either the VP9 or AV1 codec. The video should ideally work without any audio,
ibus-typing-booster tries to specify a screenshot and a video in the appdata:
https://github.com/mike-fabian/ibus-typing-booster/blob/main/typing-booster.appdata.xml#L15
<screenshots>
<screenshot type="default">
<image type="source" width="956" height="233" xml:lang="en">
https://mike-fabian.github.io/ibus-typing-booster/images/typing-emoji-and-context-sensitive-completion.png
</image>
<caption>Typing Booster screenshot</caption>
</screenshot>
<screenshot>
<video container="webm" codec="vp9" xml:lang="en">
https://mike-fabian.github.io/ibus-typing-booster/videos/overview-demo-setup-use-typing-booster-emoji-picker.webm
</video>
<caption>Typing booster demo video</caption>
</screenshot>
</screenshots>
The screenshot works in gnome-software, but the video does not work. See this attached screenshot of the ibus-typing-booster page in gnome-software:
Edited by Milan Crha