Skip to content

feat(native): replace GStreamer with Rust streamer v2 - #776

Draft
zortos293 wants to merge 29 commits into
devfrom
capy/native-streamer-v2
Draft

feat(native): replace GStreamer with Rust streamer v2#776
zortos293 wants to merge 29 commits into
devfrom
capy/native-streamer-v2

Conversation

@zortos293

@zortos293 zortos293 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • removes the former GStreamer implementation, patched/vendor payloads, checked-in runtime, cache, packaging helpers, and Linux GStreamer dependencies
  • introduces a self-contained Rust 2024 workspace with typed app protocol, bounded lifecycle/queues, native media decode/output, direct WebRTC transport, and platform-specific packaging for Linux, macOS, and Windows x64/ARM64
  • adds an explicit non-WebRTC NVST mode with CloudMatch classic allocation, ordered connection topology, retained RTSPS ownership, authenticated H.264 UDP receive, replay protection, frame reassembly, and fail-closed behavior when required negotiation data is absent
  • preserves CloudMatch protocol/app-level/resource-path descriptors, proven SIGNALING/MEDIA/RTSPS/BUNDLE usage values, supplied ICE URLs, non-default signaling authority/path/query data, and session-stable resume fields
  • hardens recovery with generation guards, stale-process event rejection, capability enforcement, and a connectivity-aware five-minute server polling window
  • removes sensitive full CloudMatch response logging and keeps diagnostics structurally redacted

Current readiness

This remains a draft. The branch provides a compiled and synthetic-test-validated native framework plus an evidence-backed authenticated H.264 receive slice; it does not claim complete live GFN NVST interoperability.

Still blocked on an authorized disposable GFN capture and live session validation for the exact classic control sequence, runtime cryptographic derivation, audio transport/output, native input/control serialization, negotiated ping behavior, FEC/NACK/keyframe recovery, pause/resume, teardown, and reconnect. Explicit NVST mode does not fall back to WebRTC media.

Static analysis of the supplied Linux bundle established neutral externally observable schemas, enum values, lifecycle boundaries, RTSP method/media ordering, the 16-byte NVST frame header, and RTCP Generic NACK construction. It did not establish runtime-provided packet bytes, keys, ports, cadence, or complete control/input/audio wire formats, so those remain deliberately unimplemented rather than guessed.

Verification

  • cargo fmt --manifest-path native/opennow-streamer/Cargo.toml --all -- --check
  • cargo clippy --manifest-path native/opennow-streamer/Cargo.toml --workspace --all-targets -- -D warnings
  • cargo test --manifest-path native/opennow-streamer/Cargo.toml --workspace
  • npm --prefix opennow-stable run native:build
  • npm --prefix opennow-stable run typecheck
  • npm --prefix opennow-stable run lint
  • npm --prefix opennow-stable test (663 passing at latest local validation)
  • git diff --check

Cross-platform compilation/package checks run in the PR matrix. Authorized end-to-end GFN validation remains outstanding.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d2ee8f3-2094-47e3-92c2-368c090f98d3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@capy-ai capy-ai Bot changed the title refactor(native): replace GStreamer streamer with Rust v2 foundation feat(native): replace GStreamer with Rust streamer v2 Aug 18, 2026
@blacksmith-sh

This comment has been minimized.

Wire Bifrost-shaped x-nv ANNOUNCE ICE credentials and native STUN
binding requests so the explicit NVST path can complete authenticated
UDP hole punching without WebRTC media fallback.
@blacksmith-sh

This comment has been minimized.

let packet = Buffer.concat(parts);
header.writeUInt16BE(packet.length - 20 + 24, 2);
packet = Buffer.concat(parts);
appendStunAttribute(parts, 0x0008, createHmac("sha1", remotePassword).update(packet).digest());
Match official Bifrost identity and order so ANNOUNCE can arm WebRtcTransport: 4/22 local ICE, V2 remote ufrag, DTLS after ANNOUNCE, and keep hole-punch STUN until the handshake completes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants