Skip to content

Add YouTube playback support to alignment result pages#356

Open
thedalbee wants to merge 1 commit into
strob:masterfrom
thedalbee:codex/youtube-output-player-280
Open

Add YouTube playback support to alignment result pages#356
thedalbee wants to merge 1 commit into
strob:masterfrom
thedalbee:codex/youtube-output-player-280

Conversation

@thedalbee
Copy link
Copy Markdown

Fixes #280

Summary

Adds an opt-in YouTube playback mode for alignment result pages:

  • keeps the existing HTML5 audio player as the default path
  • accepts ?youtube=<video id or URL> / ?youtube_id=<video id> on result pages
  • swaps in the YouTube iframe player and routes transcript highlighting plus word-click seeking through the same playback adapter
  • documents the result-page URL examples in the README

This 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.

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.
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.

Substituting a YouTube video for the audio player on Gentle's output page

1 participant