Fix companion: migrate to Netlify backend + add TV pairing#396
Open
test01203 wants to merge 8 commits into
Open
Fix companion: migrate to Netlify backend + add TV pairing#396test01203 wants to merge 8 commits into
test01203 wants to merge 8 commits into
Conversation
- Replace Supabase with Netlify Functions (auth.arvio.tv) — same email/password as ARVIO - Auth: /auth-login and /cloud-auth-email, session in localStorage - Data: account-sync-pull/push instead of Supabase tables - TV pairing: ?code=XXXX-XXXX → /tv-auth-complete (one-step) or /tv-auth-approve - Add Sign In link to main site nav pointing to /companion/
d4c3b1c to
b80732f
Compare
…ro delay) - SpeechSubtitleEngine: MediaExtractor reads audio 25s ahead of playback - MediaCodec decodes to 16kHz mono PCM → Groq whisper-large-v3-turbo - verbose_json timestamps → TreeMap<timeMs, text> → display on exact frame - PlayerViewModel: auto-starts engine when AI enabled + stream URL set - PlayerScreen: Hebrew subtitle overlay with shadow text, 6f zIndex
Settings → General → AI Subtitles: - New toggle: Voice Transcription + Translation (speech_transcription_enabled) Player subtitle menu: - New '🎙 Voice (HE)' option at top of language list - Toggle via viewModel.toggleSpeechSubtitle() PlayerViewModel: - Reads speech_transcription_enabled from DataStore - Auto-starts SpeechSubtitleEngine when stream starts (if enabled + API key set) - toggleSpeechSubtitle() for manual control from subtitle menu PlayerScreen: - Overlay: Hebrew subtitle text at bottom with shadow, zIndex 6 - Collects viewModel.speechSubtitle StateFlow SpeechSubtitleEngine: - MediaExtractor reads audio 25s ahead of playback position - MediaCodec decodes to 16kHz mono PCM - Groq whisper-large-v3-turbo → text + per-segment timestamps - TreeMap<timeMs, Pair<text, endMs>> → display loop every 80ms - Result: zero perceptible delay (subtitle ready before audio plays)
Owner
|
Is this still needed? @silentbil already updated the webapp. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The companion web app (PR #377) was merged still pointing at the old Supabase backend, but ARVIO has since migrated to Netlify Functions. This PR fixes that, adds TV pairing support, and adds a Sign In button to the main site nav.
Changes:
https://auth.arvio.tv/.netlify/functions)/auth-loginand/cloud-auth-email— same credentials as the official ARVIO loginaccount-sync-pull/account-sync-pushinstead of Supabase tableslocalStorage, no Supabase dependency/companion/)TV Pairing:
?code=XXXX-XXXXURL param (fromtv-auth-startverification_url)/tv-auth-approve(one click)/tv-auth-complete(login + pair in one step)