Add GStreamer codec docs, fix connection indicator reactivity

Add GStreamer codec dependencies to PKGBUILD and install instructions
to README for Linux video/audio playback. Add periodic relay pool
status check so connection indicator stays accurate after reconnects.
This commit is contained in:
Jure
2026-03-15 20:30:50 +01:00
parent 17011252d6
commit ad79ab99de
3 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ depends=(
'gtk3'
'libayatana-appindicator'
'openssl'
'gst-plugins-base'
'gst-plugins-good'
'gst-libav'
)
makedepends=(
'rust'

View File

@@ -19,6 +19,18 @@ Grab the latest release from the [Releases page](https://github.com/hoornet/wrys
**Windows note:** The installer is not yet code-signed. Windows SmartScreen will show an "Unknown publisher" warning — click "More info → Run anyway" to install.
**Linux note:** Video and audio playback requires GStreamer codec packages. The AUR package installs these automatically. For `.deb`/`.rpm` installs, you may need:
```bash
# Arch / Manjaro
sudo pacman -S gst-plugins-base gst-plugins-good gst-libav
# Ubuntu / Debian
sudo apt install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-libav
# Fedora
sudo dnf install gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-libav
```
## Features
**Identity & accounts**

View File

@@ -28,6 +28,18 @@ export const useFeedStore = create<FeedState>((set, get) => ({
set({ error: null });
await connectToRelays();
set({ connected: true });
// Monitor relay connectivity — update status if all relays disconnect
const ndk = getNDK();
const checkConnection = () => {
const relays = Array.from(ndk.pool?.relays?.values() ?? []);
const hasConnected = relays.some((r) => r.connected);
if (get().connected !== hasConnected) {
set({ connected: hasConnected });
}
};
// Re-check periodically (relay reconnects, disconnects)
setInterval(checkConnection, 5000);
} catch (err) {
set({ error: `Connection failed: ${err}` });
}