Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OffthreadVideo is positioned differently in rendered output than in browser Player #4410

Open
empz opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@empz
Copy link

empz commented Oct 16, 2024

Remotion Version: 4.0.221

Preview Player in browser:
Image

Rendered output:
Image

Using the following component:

import { Loop, OffthreadVideo } from "remotion";

export const LoopedOffthreadVideo: React.FC<{
  durationInFrames: number;
  src: string;
  muted?: boolean;
}> = ({ durationInFrames, src }) => {
  if (durationInFrames <= 0) {
    throw new Error("durationInFrames must be greater than 0");
  }

  return (
    <Loop durationInFrames={durationInFrames}>
      <OffthreadVideo src={src} muted />
    </Loop>
  );
};

This component is just rendered inside the top-level AbsoluteFill:

<AbsoluteFill style={{ background: bgColor, cursor: "default", userSelect: "none" }}>
      <LoopedOffthreadVideo
          durationInFrames={bgVideoDurationInFrames}
          src={bgMediaUrl}
          muted={true}
        />

       // Other components
</AbsoluteFill>
@empz empz added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant