Skip to content
GUIDES#Remotion Player#remotion/player#embed video React

Remotion Player: Embed Interactive Video in a React Site (2026 Guide)

Instead of rendering an MP4 and uploading it, you play the video live in the browser and update it in real time based on user input. Here is how Remotion Player works, and why it changes the rules for interactive video.

Yaakov Tzedek
Yaakov Tzedek · AI expert·9 min read
Remotion Player, interactive video in a React site
THE BOTTOM LINE
  • What it is: A <Player> component that plays a Remotion composition live on the client side, with no pre-rendering.
  • Why it's powerful: The user changes a field, the video updates instantly. Ideal for configurators and live previews.
  • How to control it: Via PlayerRef, play, pause, seekTo, and events like ended.
@remotion/playerPackage
Real time in the browserWhen
NoMP4 render required
DID YOU KNOW?

Remotion Player runs the exact same React component used to render the MP4, but live in the browser. That means you can let users change text, colors, or data and watch the video update in real time, with no server-side rendering at all.

Remotion Player is a React component that plays a Remotion composition live in the browser, without rendering it to MP4 first. Through the @remotion/player package, you embed the video directly in your site and can update it in real time based on user input. This is the interactive side of Remotion, a natural continuation of the main guide and of building data-driven video.

In short (TL;DR)

  • What it is: A <Player> component that plays a Remotion composition live on the client side, with no pre-rendering.
  • Why it's powerful: The user changes a field, the video updates instantly. Ideal for configurators and live previews.
  • How to control it: Via PlayerRef, play, pause, seekTo, and events like ended.
  • Player vs. rendering: Player for display and interaction; renderMedia when you need a permanent MP4 file.

What is Remotion Player?

Remotion Player is a React component from the @remotion/player package that plays a Remotion composition directly in the user's browser, interactively and in real time. It is the same video component used to render MP4 files, except here it runs live, with no rendering step.

The difference from a standard embedded video player: here the video is React code, so every frame can respond to the application's state and to user input.

Why does this matter? A regular video on a website is a static file. What was recorded is what you see. Remotion Player makes video "live": you can change text, color, data, or timing while watching, without touching a server and without re-rendering.

Remotion Player or rendering to MP4: which should you choose?

Both approaches use the same React component, but serve different purposes. Many projects combine them:

AspectRemotion PlayerRendering (renderMedia)
Where it runsIn the browser, client sideOn a server / Lambda
OutputLive playback, no fileA permanent MP4 file
InteractivityFull, changes with user inputNone, what was rendered is what you get
When to usePreview, configurator, live video on siteDownload, distribution, uploading to platforms
Pre-rendering requiredNoYes

How do you embed the Player? (code example)

Import Player, pass it your component and the composition properties (duration, fps, dimensions), and wire up controls:

import { Player } from "@remotion/player";
import { MyVideo } from "./MyVideo";

export const Embed = () => (
  <Player
    component={MyVideo}
    durationInFrames={150}
    fps={30}
    compositionWidth={1920}
    compositionHeight={1080}
    controls            // controls bar (play, scrubber, volume)
    loop
    style={{ width: "100%" }}
    inputProps={{ title: "Hello from Remotion" }}
  />
);

That's it. The video plays inside your React page, with no video file and no rendering.

How do you control the player from code? (PlayerRef and events)

For programmatic control, attach a ref of type PlayerRef and call methods or listen to events:

import { Player, PlayerRef } from "@remotion/player";
import { useRef, useEffect } from "react";

export const Controlled = () => {
  const ref = useRef<PlayerRef>(null);

  useEffect(() => {
    const player = ref.current;
    if (!player) return;
    const onEnded = () => console.log("The video has ended");
    player.addEventListener("ended", onEnded);
    return () => player.removeEventListener("ended", onEnded);
  }, []);

  return (
    <>
      <Player ref={ref} component={MyVideo} durationInFrames={150} fps={30} compositionWidth={1080} compositionHeight={1080} />
      <button onClick={() => ref.current?.play()}>Play</button>
      <button onClick={() => ref.current?.seekTo(0)}>From the start</button>
    </>
  );
};

Common methods: play(), pause(), toggle(), seekTo(frame), getCurrentFrame(), mute(). Common events: play, pause, ended, seeked, timeupdate.

How do you make the video interactive?

This is the core feature: pass inputProps as React state. When the user changes a field, the state updates and the video changes immediately, in real time:

const [name, setName] = useState("Dana");

return (
  <>
    <input value={name} onChange={(e) => setName(e.target.value)} />
    <Player
      component={Wrapped}
      inputProps={{ name }}     // changes with state
      durationInFrames={300}
      fps={30}
      compositionWidth={1080}
      compositionHeight={1920}
    />
  </>
);

The user types a name, and the video displays it in motion, with no rendering and no server call.

What use cases is Remotion Player suited for?

The player shines anywhere the video needs to respond to the user or change based on live data:

  • Video configurator: The user picks text, color, and a logo and sees a live preview before the final MP4 is rendered.
  • Preview before download: Show the video in the Player while rendering the file for download in the background.
  • Dashboard with live video: Animated charts and data that update from the latest figures.
  • Interactive product demo: An animated explanation that changes based on the user's choices on the site.

How does Claude Code help here?

Since January 2026, with Remotion's Agent Skills for Claude Code, you can describe both the Player embedding and its connection to state in plain language, and the agent writes the code.

Example prompt: "Embed Remotion Player in my React site, connect the inputProps to a text field the user fills in, and add play/stop buttons with PlayerRef."

This way even someone without deep React expertise can add interactive video to their site, exactly the kind of workflows we teach.

The bottom line

Remotion Player transforms video from a static file into a live, interactive experience inside a React application, with no rendering and no server. Combined with MP4 rendering for the final file, you get a complete video engine: an interactive display for the client, and a downloadable file when you need it.

Want to add smart, interactive video to your product or business? That is exactly what we teach.

Continue reading: Full Remotion guide · Data-driven video with Remotion · What is Claude Code · Free Claude Code course · AI automations for business

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →