v0.0.47: integrate 6 WZP audio variants into featherChat calls
startAudio() now dynamically loads the selected WZP client variant: - /audio-variant [pure|hybrid|full|ws|ws-fec|ws-full] - Loads variant JS from wzp-web's /audio/js/ path via Caddy - Falls back to inline pure implementation if variant fails to load - Variant persisted in localStorage across sessions - Call bar shows active variant: "In call [ws-fec] with 0x..." Variants: pure — raw PCM over WS (bridge needed, no WASM) hybrid — raw PCM + WASM FEC over WS (bridge needed) full — WebTransport + FEC + crypto (no bridge, future) ws — WZP protocol over WS (relay direct) ws-fec — WZP + WASM FEC over WS (relay direct) ws-full — WZP + FEC + E2E crypto over WS (relay direct) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -122,7 +122,7 @@ do_urls() {
|
||||
for i in "${!VARIANTS[@]}"; do
|
||||
local sub="${VARIANTS[$i]}"
|
||||
local label="${LABELS[$i]}"
|
||||
printf " │ %-6s │ %-8s │ https://%s.%s/test-room │\n" "$sub" "$label" "$sub" "$BASE_DOMAIN"
|
||||
printf " │ %-6s │ %-8s │ https://%s.%s/test-room?variant=%s │\n" "$sub" "$label" "$sub" "$BASE_DOMAIN" "$label"
|
||||
done
|
||||
echo " └────────┴──────────┴──────────────────────────────────────────┘"
|
||||
echo ""
|
||||
@@ -137,7 +137,7 @@ do_check() {
|
||||
for i in "${!VARIANTS[@]}"; do
|
||||
local sub="${VARIANTS[$i]}"
|
||||
local label="${LABELS[$i]}"
|
||||
local url="https://${sub}.${BASE_DOMAIN}/"
|
||||
local url="https://${sub}.${BASE_DOMAIN}/test-room?variant=${label}"
|
||||
local status
|
||||
status=$(curl -4 -s -o /dev/null -w "%{http_code}" --connect-timeout 5 "$url" 2>/dev/null || echo "000")
|
||||
if [ "$status" = "200" ]; then
|
||||
|
||||
Reference in New Issue
Block a user