From aa4a4fb5ef22172ae554eac1c141124305774023 Mon Sep 17 00:00:00 2001 From: Tamas Csikel Date: Sun, 1 Nov 2026 20:06:31 +0100 Subject: [PATCH] Netflex 0.1.4: no flicker during playback, play/pause always pauses - Fennec SDK 0.1.2: the video no longer dims every other frame (it made the picture flicker on slow GPUs like the Raspberry Pi 4). - The remote's play/pause (it arrives as space, sf-compositor) plays or pauses even when the controls are up; before, it pressed the focused button, e.g. "10 mp" seeked back. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/release.yml | 2 +- Cargo.lock | 6 +++--- Cargo.toml | 6 +++--- app.toml | 2 +- package.sh | 2 +- src/player.rs | 3 ++- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index aa2176e..7056f1d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -22,7 +22,7 @@ jobs: CARGO_TARGET_DIR: /tmp/fennec-netflex/target CARGO_INCREMENTAL: "0" SDK_GIT: https://gitea.bluefox.support/fennec/sdk - SDK_TAG: v0.1.1 + SDK_TAG: v0.1.2 steps: - name: Checkout run: | diff --git a/Cargo.lock b/Cargo.lock index 0871273..421e80c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3402,7 +3402,7 @@ dependencies = [ [[package]] name = "netflex-tv" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "env_logger", @@ -4864,8 +4864,8 @@ dependencies = [ [[package]] name = "sf-ui" -version = "0.1.1" -source = "git+https://gitea.bluefox.support/fennec/sdk?tag=v0.1.1#25fecb8daee77232333c6f289410d2fd3eb40bfc" +version = "0.1.2" +source = "git+https://gitea.bluefox.support/fennec/sdk?tag=v0.1.2#cb37d872ed7195e57268e0c3a1a76367039bf959" dependencies = [ "anyhow", "glow 0.16.0", diff --git a/Cargo.toml b/Cargo.toml index 35a5c53..b2565fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "netflex-tv" description = "Netflex for SmartFox: native TV client with Liquid Glass and hardware video playback" -version = "0.1.3" +version = "0.1.4" edition = "2024" # sf-ui (and Slint) are GPL-3.0 on a TV box. license = "GPL-3.0-only" @@ -10,7 +10,7 @@ publish = false [dependencies] # The Fennec OS UI kit (Fennec SDK): Liquid Glass, TV components, images. # Working on sf-ui next to this app: see README.md. -sf-ui = { git = "https://gitea.bluefox.support/fennec/sdk", tag = "v0.1.1" } +sf-ui = { git = "https://gitea.bluefox.support/fennec/sdk", tag = "v0.1.2" } slint = "1.18" anyhow = "1" log = "0.4" @@ -22,7 +22,7 @@ ureq = { version = "3", features = ["json"] } # Video playback (GStreamer) only on Linux, the TV. [target.'cfg(target_os = "linux")'.dependencies] -sf-ui = { git = "https://gitea.bluefox.support/fennec/sdk", tag = "v0.1.1", features = ["video"] } +sf-ui = { git = "https://gitea.bluefox.support/fennec/sdk", tag = "v0.1.2", features = ["video"] } [build-dependencies] slint-build = "1.18" diff --git a/app.toml b/app.toml index dd3125f..3d57505 100644 --- a/app.toml +++ b/app.toml @@ -2,7 +2,7 @@ id = "support.bluefox.netflex" name = "Netflex" # Release versions only (1.2.3). Bump it (and Cargo.toml) for every release. -version = "0.1.3" +version = "0.1.4" kind = "exec" category = "Saját streaming" description = "Filmek és sorozatok a saját Netflex szerveredről, natívan: azonnal indul, miközben töltődik, hardveres videódekódolással." diff --git a/package.sh b/package.sh index e4af13c..8698802 100755 --- a/package.sh +++ b/package.sh @@ -9,7 +9,7 @@ # Build on Debian trixie or older (the TV's glibc), with the GStreamer dev # packages (libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev) and # sf-pack from the Fennec SDK: -# cargo install --locked --git https://gitea.bluefox.support/fennec/sdk --tag v0.1.1 sf-pack +# cargo install --locked --git https://gitea.bluefox.support/fennec/sdk --tag v0.1.2 sf-pack # --arm also needs gcc-aarch64-linux-gnu, the arm64 (multiarch) dev packages # of fontconfig, freetype, xkbcommon and glib, and the arm64 GStreamer # runtime libraries (libgstreamer1.0-0:arm64 libgstreamer-plugins-base1.0-0:arm64). diff --git a/src/player.rs b/src/player.rs index 2065457..d792116 100644 --- a/src/player.rs +++ b/src/player.rs @@ -1191,7 +1191,8 @@ pub fn key(c: &Controller, a: Action, repeat: bool) { p.osd_until = now + OSD; let row = buttons(p); match a { - Action::Ok | Action::PlayPause if p.area == 1 && visible => match p.button { + // OK presses the focused button; play/pause always plays or pauses. + Action::Ok if p.area == 1 && visible => match p.button { 0 => { toggle(p, now); Then::Nothing