mirror of
https://github.com/hoornet/vega.git
synced 2026-04-24 06:40:01 -07:00
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:
3
PKGBUILD
3
PKGBUILD
@@ -11,6 +11,9 @@ depends=(
|
|||||||
'gtk3'
|
'gtk3'
|
||||||
'libayatana-appindicator'
|
'libayatana-appindicator'
|
||||||
'openssl'
|
'openssl'
|
||||||
|
'gst-plugins-base'
|
||||||
|
'gst-plugins-good'
|
||||||
|
'gst-libav'
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'rust'
|
'rust'
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -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.
|
**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
|
## Features
|
||||||
|
|
||||||
**Identity & accounts**
|
**Identity & accounts**
|
||||||
|
|||||||
@@ -28,6 +28,18 @@ export const useFeedStore = create<FeedState>((set, get) => ({
|
|||||||
set({ error: null });
|
set({ error: null });
|
||||||
await connectToRelays();
|
await connectToRelays();
|
||||||
set({ connected: true });
|
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) {
|
} catch (err) {
|
||||||
set({ error: `Connection failed: ${err}` });
|
set({ error: `Connection failed: ${err}` });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user