🎥 Make videos programmatically with React
embed
Jonny Burger6c3d1d9d81da
diff --git a/packages/docs/blog/2023-07-03-remotion-4-0.md b/packages/docs/blog/2023-07-03-remotion-4-0.mdindex 1147a31716..266d0f2b01 100644--- a/packages/docs/blog/2023-07-03-remotion-4-0.md+++ b/packages/docs/blog/2023-07-03-remotion-4-0.md@@ -12,6 +12,11 @@ description: Introducing visual editing, Rust-powered architecture, and the RendWelcome to the biggest Remotion update ever!With Remotion 4.0, we offer significant improvements to many workflows.+<iframe style={{+ width: '100%',+ aspectRatio: '16 / 9'+}} src="https://www.youtube.com/embed/S3C9wlPNhkQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>+## Introducing the Remotion StudioWe added handy features to the Remotion Preview - as a result, it's more than just a preview! Therefore, we renamed it: Welcome to the Remotion Studio!diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsxindex 608bca5630..41a01e1307 100644--- a/packages/docs/src/pages/4/index.tsx+++ b/packages/docs/src/pages/4/index.tsx@@ -6,7 +6,6 @@ import React, { useCallback, useMemo, useState } from "react";import { Spacer } from "../../../components/layout/Spacer";import { CoolInput } from "../../../components/TextInput";import { Seo } from "../../components/Seo";-import { V4Countdown } from "../../components/V4Countdown";import styles from "./v4.module.css";const spacer: React.CSSProperties = {@@ -101,41 +100,14 @@ const V4: React.FC = () => {</p></div><br />- <iframe- style={{- width: "100%",- aspectRatio: "16 / 9",- }}- src="https://www.youtube.com/embed/S3C9wlPNhkQ"- title="YouTube video player"- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"- allowFullScreen- /><br />- <div style={{ textAlign: "center" }}>- <div>- <V4Countdown />- </div>- <div>- <a- href="/documents/RemotionV4Launch.ics"- download="RemotionV4Launch.ics"- >- <div- className={[styles.button, styles.calendarbutton].join(" ")}- >- Add to Calendar- </div>- </a>- </div>- </div>-<div style={{ height: "60px" }} /><div className={styles.grid}><EventCompdescription="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media creation with React."date="July 3rd"title="Keynote"+ youtubeId="S3C9wlPNhkQ"/><EventCompdate="July 4th"@@ -196,7 +168,8 @@ export const EventComp: React.FC<{date: string;title: string;description: string;-}> = ({ date, title, description }) => {+ youtubeId?: string;+}> = ({ date, title, description, youtubeId }) => {return (<divstyle={{@@ -209,6 +182,19 @@ export const EventComp: React.FC<{<p className={styles.date}>{date}</p><p className={styles.eventtitle}>{title}</p><p>{description}</p>+ {youtubeId ? (+ <iframe+ style={{+ width: "100%",+ aspectRatio: "16 / 9",+ }}+ src={`https://www.youtube.com/embed/${youtubeId}`}+ title="YouTube video player"+ frameBorder="0"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ />+ ) : null}</div>);};