Skip to content

🎥 Make videos programmatically with React

better explanation

JonnyBurger49aa18d66758
diff --git a/packages/studio/src/components/RenderModal/WebRenderModal.tsx b/packages/studio/src/components/RenderModal/WebRenderModal.tsx
index e9bf7966a1..48c7213985 100644
--- a/packages/studio/src/components/RenderModal/WebRenderModal.tsx
+++ b/packages/studio/src/components/RenderModal/WebRenderModal.tsx
@@ -11,6 +11,7 @@ import {renderMediaOnWeb, renderStillOnWeb} from '@remotion/web-renderer';
import {useCallback, useContext, useMemo, useState} from 'react';
import {ShortcutHint} from '../../error-overlay/remotion-overlay/ShortcutHint';
import {AudioIcon} from '../../icons/audio';
+import {CertificateIcon} from '../../icons/certificate';
import {DataIcon} from '../../icons/data';
import {FileIcon} from '../../icons/file';
import {PicIcon} from '../../icons/frame';
@@ -451,6 +452,7 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({
const onRenderVideo = useCallback(async () => {
setRenderProgress({renderedFrames: 0, encodedFrames: 0});
+ console.log({finalLicenseKey});
const {getBlob} = await renderMediaOnWeb({
composition: {
@@ -599,9 +601,9 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({
onClick={() => setTab('advanced')}
>
<div style={iconContainer}>
- <FileIcon style={icon} />
+ <GearIcon style={icon} />
</div>
- Advanced
+ Other
</VerticalTab>
<VerticalTab
style={horizontalTab}
@@ -609,7 +611,7 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({
onClick={() => setTab('license')}
>
<div style={iconContainer}>
- <GearIcon style={icon} />
+ <CertificateIcon style={icon} />
</div>
License
</VerticalTab>
diff --git a/packages/studio/src/components/RenderModal/WebRenderModalLicense.tsx b/packages/studio/src/components/RenderModal/WebRenderModalLicense.tsx
index e1607f0184..fea3035974 100644
--- a/packages/studio/src/components/RenderModal/WebRenderModalLicense.tsx
+++ b/packages/studio/src/components/RenderModal/WebRenderModalLicense.tsx
@@ -109,7 +109,15 @@ export const WebRenderModalLicense: React.FC<WebRenderModalLicenseProps> = ({
>
Company License
</a>
- . <br /> If you have one, add your public license key below.
+ . <br /> If you have one, add your public license from{' '}
+ <a
+ href="https://remotion.pro/dashboard"
+ target="_blank"
+ style={descriptionLink}
+ >
+ remotion.pro
+ </a>{' '}
+ key below.
</div>
<div style={optionRow}>
<div style={justifyCenter}>
diff --git a/packages/studio/src/icons/certificate.tsx b/packages/studio/src/icons/certificate.tsx
new file mode 100644
index 0000000000..77b54a73ef
--- /dev/null
+++ b/packages/studio/src/icons/certificate.tsx
@@ -0,0 +1,8 @@
+export const CertificateIcon = (props: React.SVGProps<SVGSVGElement>) => (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}>
+ <path
+ fill="currentcolor"
+ d="M192 32l128 0 0 96c0 35.3 28.7 64 64 64l96 0 0 256c0 17.7-14.3 32-32 32l-192 0 0 32 192 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 80c10.9 0 21.6 1 32 2.9L160 64c0-17.7 14.3-32 32-32zM352 45.3L466.7 160 384 160c-17.7 0-32-14.3-32-32l0-82.7zM32 320a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 438.7l0 66.3-40.1-22.9c-4.9-2.8-11-2.8-15.9 0L80 505 80 438.7c14.8 6 31 9.3 48 9.3s33.2-3.3 48-9.3zm32-18.8c29.3-23.5 48-59.5 48-99.9 0-70.7-57.3-128-128-128S0 249.3 0 320c0 40.4 18.7 76.5 48 99.9l0 101.8c0 12.3 10 22.3 22.3 22.3 3.9 0 7.7-1 11.1-2.9l46.6-26.6 46.6 26.6c3.4 1.9 7.2 2.9 11.1 2.9 12.3 0 22.3-10 22.3-22.3l0-101.8zM128 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm0-80a56 56 0 1 0 0 112 56 56 0 1 0 0-112z"
+ />
+ </svg>
+);