feat(remotion): abertura de curso em video programatico (player + render MP4) - #34
Draft
alexandrebrt14-sys wants to merge 2 commits into
Draft
feat(remotion): abertura de curso em video programatico (player + render MP4)#34alexandrebrt14-sys wants to merge 2 commits into
alexandrebrt14-sys wants to merge 2 commits into
Conversation
…der MP4)
Incorpora a tecnica do remotion.dev: video em React embutido na pagina gerada (auto-demo) e export MP4 opcional. Tudo opt-in via CourseDefinition.intro_video (default False) -> output dos cursos atuais inalterado, testes golden verdes.
- models.py: campo intro_video (opt-in). tsx_generator: propaga ao contexto.
- page.tsx.j2: import + <CourseVideoPlayer> gated por intro_video (prop acentuada via {"..."}, regra Turbopack).
- remotion/: subprojeto Node isolado (composicao CourseIntro), tsc OK.
- video_generator.py + cli.py render-video: export MP4 via npx remotion render.
- Doc no CLAUDE.md e remotion/README.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…al no render-video
Composicao vertical 1080x1920 com CTA para criativos de ads, em paridade com o landing-page-geo. cli.py render-video ganha --format {landscape,vertical} e --cta.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
alexandrebrt14-sys
marked this pull request as draft
June 30, 2026 11:53
Owner
Author
|
Triagem (higienização 08/07): decisão do Alexandre — este PR era acoplado ao landing-page-geo #99 (player Remotion), que foi FECHADO sem merge. Mergear o #34 sozinho pode deixar o intro_video sem o par no outro repo. Reavaliar a estratégia Remotion antes de promover de draft. |
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.
O que
Incorpora a tecnica do remotion.dev na fabrica de cursos: video em React embutido na pagina gerada (auto-demo) e export MP4 opcional.
Opt-in (nao quebra nada)
Tudo gated por
CourseDefinition.intro_video: bool = False. DefaultFalse-> output dos cursos atuais byte-a-byte igual, testes golden verdes.Mudancas
src/models.py: campointro_video.src/generators/tsx_generator.py: propaga ao contexto.src/templates/page.tsx.j2: import +<CourseVideoPlayer>gated por{% if intro_video %}, logo abaixo do hero (prop acentuada viaprop={"..."}, regra Turbopack do landing).remotion/: subprojeto Node isolado do Python (composicaoCourseIntro).npm install+tsc --noEmit→ OK.src/generators/video_generator.py+cli.py render-video: export MP4 vianpx remotion render(instala deps do subprojeto na 1a execucao).CLAUDE.mderemotion/README.md.Validacao
python -m unittest tests.test_generators→ 5/5 OK.intro_video=False→ semCourseVideoPlayer;=True→ presente (import + bloco). Confirmado.tsc).Notas
<CourseVideoPlayer>vive no landing-page-geo (alvo de deploy) — PR irmao: alexandrebrt14-sys/landing-page-geo#99. Mergear os dois juntos.@remotion/rendererbaixa um Chromium headless no 1orender-video(por isso o MP4 real nao foi rodado no CI deste PR; caminho validado por tsc).unittest discoverfalha em modulos que importampytest(ausente no ambiente) — pre-existente, sem relacao com este PR.🤖 Generated with Claude Code