mirror of
https://github.com/calesthio/OpenMontage.git
synced 2026-08-25 17:42:50 +08:00
Merge pull request #506 from sakuraozation/fix/talkinghead-resolve-asset
fix(remotion-composer): resolve videoSrc through resolveAsset in TalkingHead
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
useVideoConfig,
|
||||
} from "remotion";
|
||||
import { CaptionOverlay, WordCaption } from "./components/CaptionOverlay";
|
||||
import { resolveAsset } from "./lib/resolveAsset";
|
||||
import { TextCard } from "./components/TextCard";
|
||||
import { StatCard } from "./components/StatCard";
|
||||
import { CalloutBox } from "./components/CalloutBox";
|
||||
@@ -327,7 +328,7 @@ export const TalkingHead: React.FC<TalkingHeadProps> = ({
|
||||
<AbsoluteFill style={{ backgroundColor: "#000" }}>
|
||||
{/* Layer 1: Video background */}
|
||||
<OffthreadVideo
|
||||
src={videoSrc}
|
||||
src={resolveAsset(videoSrc)}
|
||||
style={{ width: "100%", height: "100%", objectFit: "cover" }}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user