Add YouTube playback support to alignment result pages#356
Open
thedalbee wants to merge 1 commit into
Open
Conversation
The bounty asks for Gentle result pages to substitute a YouTube video for the HTML5 audio player while keeping transcript timecode clicks useful. This keeps the existing audio path unchanged and adds an opt-in youtube query parameter that swaps in the YouTube iframe API behind the same playback adapter. Constraint: Avoided install/build/test scripts because this repository contains supply-chain risk findings from repo_vet. Rejected: Full YouTube URL input transcription flow | broader scope than the base bounty and would require server-side download/import behavior. Confidence: medium Scope-risk: narrow Directive: Keep the default audio player path unchanged; YouTube playback should remain opt-in from the result page query string. Tested: Extracted view_alignment.html script and ran node --check - Tested: git diff --check Not-tested: Browser-level YouTube iframe playback because local install/runtime was intentionally avoided.
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.
Fixes #280
Summary
Adds an opt-in YouTube playback mode for alignment result pages:
?youtube=<video id or URL>/?youtube_id=<video id>on result pagesThis targets the base bounty scope: a working output page where an embedded YouTube video substitutes for the HTML5 audio player while keeping transcript timecode interaction. It does not add the broader YouTube URL input/transcription workflow.
Verification
awk '/<script>/{flag=1;next}/<\\/script>/{flag=0}flag' www/view_alignment.html | node --check -\n-git diff --check\n\n## Safety note\n\nI reviewed this repository with a local supply-chain vetting script before running commands. Because the repository contains install/download/system scripts, I kept validation to static checks and did not run install/build/runtime scripts locally.