π₯ Make videos programmatically with React
tamper proof blacklist
Bankkf293c6bc8b17
diff --git a/packages/player/src/license-blacklist.tsx b/packages/player/src/license-blacklist.tsxindex ed545c390a..7454b5754d 100644--- a/packages/player/src/license-blacklist.tsx+++ b/packages/player/src/license-blacklist.tsx@@ -64,12 +64,44 @@ export const RenderWarningIfBlacklist: React.FC = () => {.catch(() => {});}, []);+ useEffect(() => {+ if (!unlicensed) return;++ const ensureBanner = () => {+ const banner = document.querySelector('.warning-banner');+ if (!banner) {+ const div = document.createElement('div');+ div.className = 'warning-banner';+ Object.assign(div.style, style, { zIndex: '9999', cssText: `${style.cssText} !important;` });+ div.innerHTML = `+ <a href="https://github.com/remotion-dev/remotion/pull/4589" style="color: white;">+ Remotion Unlicensed β Contact [email protected]+ </a>+ `;+ document.body.appendChild(div);+ }+ };++ // Check every second to ensure the banner is present+ const interval = setInterval(ensureBanner, 1000);++ // Optional: MutationObserver for immediate detection+ const observer = new MutationObserver(() => ensureBanner());+ observer.observe(document.body, { childList: true, subtree: true });++ return () => {+ clearInterval(interval);+ observer.disconnect();+ };+ }, [unlicensed]);+if (!unlicensed) {return null;}+ // Initial React render of the bannerreturn (- <div style={style}>+ <div style={style} className="warning-banner"><astyle={{color: 'white'}}href="https://github.com/remotion-dev/remotion/pull/4589"