@ilovevideoeditor/renderer-server — API reference
Render VideoJSON to an MP4 file or buffer from Node using Playwright + ffmpeg.
Classes
ServerRenderer
Methods
constructor(videoJSON: VideoJSON): ServerRenderercleanup(): Promise<void>— Release all resources: browser context, temporary files, and shared browser.renderAudio(): Promise<Buffer<ArrayBufferLike> | null>— Render the full audio track and return it as a WAV Buffer.
Opens the headless page on first call, then renders all audio layers into a single WAV buffer via the in-page BrowserRenderer.
renderFrame(frame: number): Promise<Buffer<ArrayBufferLike>>— Render a single frame and return it as a JPEG screenshot Buffer.
Opens the headless page on first call, then renders the requested frame via the in-page BrowserRenderer.
render(videoJSON: VideoJSON, options: RenderOptions): Promise<string | Buffer<ArrayBufferLike>>— Render a VideoJSON to a Buffer or file.
Functions
closeSharedBrowser
Close the shared browser instance. Call this when the server is shutting down to release resources.
ts
closeSharedBrowser(): Promise<void>Returns Promise<void>