Linux
Cette page a divers guides liés au développement d'applications Wails pour Linux.
Video tag doesn't fire "ended" event
Lorsque vous utilisez un tag vidéo, l'événement "terminé" n'est pas déclenché lorsque la vidéo est finie. Ceci est un bogue dans WebkitGTK, cependant vous pouvez utiliser le contournement suivant pour le corriger :
videoTag.addEventListener("timeupdate", (event) => {
if (event.target.duration - event.target.currentTime < 0.2) {
let ended = new Event("ended");
event.target.dispatchEvent(ended);
}
});
Source : Lyimmi sur le forum de discussion
GStreamer error when using Audio or Video elements
If you are seeing the following error when including <Audio>
or <Video>
elements on Linux, you may need to install gst-plugins-good
.
GStreamer element autoaudiosink not found. Please install it
Installing
Run the following distro relevant install command:
- Arch
- Debian/Ubuntu
- Fedora
pacman -S gst-plugins-good
apt-get install gstreamer1.0-plugins-good
dnf install gstreamer1-plugins-good
If the added package does not resolve the issue, additional GStreamer dependencies may be required. See the GStreamer installation page for more details.
Additional Notes
- This issue is caused by an upstream issue with WebkitGTK.
- Arch based systems seem to have this issue more often than other distributions.
- This issue impacts Tauri apps.
Source: developomp on the Tauri discussion board.