Skip to main content

@remotion/studio-protocolv4.0.502

With this package, you can create payloads for passing content to Remotion Studio.

npx remotion add @remotion/studio-protocol

Capabilities

Installing Remotion Elements

Websites can provide Elements to a Studio either using drag-and-drop or using an installation dialog.

Create an Element payload with createElementPayload().
2
Put it on a drag event with setStudioDragData(), or send a signal to a Studio using installInStudio().

MethodBenefitsTradeoffs
Drag-and-dropThe user chooses the exact Studio tab, timeline position, and canvas position.Studio labels the source as unverified.
Installation dialogThe requesting website is shown. Remotion attempts to bring the Studio to the foreground.Always the most recently focused Studio is taken.

Adding Element catalogs

Using addElementLibraryToStudio() you can request to add an element library to the Studio.

Previewing Elements

Using buildOpenInRemotionNewUrl(), you can open your Element in remotion.dev/new.

APIs

Security

Learn about the confirmation and origin policy.

License

Remotion License

See also