Reactor class, send named commands, and receive messages. The
model name is reactor/vidu-s2-editing. The examples use the base SDK.
Usage is billed per session-minute while the session is
ready, including time between edits.
Disconnect when you are done. See Billing for how billing maps to rates.At a glance
Key features
Live camera in, edited video out
Publish your camera and watch the edit in real time. There is nothing to render ahead of time.
Four edit types
Restyle the whole scene, try on a garment, replace yourself with a character, or replace the
background, all from one reference image.
Switch mid-edit
Change the reference image, the edit type, or both with
switch_reference. The picture changes
within a few seconds and the edit keeps running.Quick start
Connect with the base SDK, publish your camera, and start an edit:How it works
- Connect. The first
session_statemessage reports phaseidle. Thecameraandmain_videotracks exist from the start, so you can attach a player and publish your camera right away. Until an edit is running,main_videoshows a neutral dark frame. - Publish your camera. The model edits nothing until your camera reaches it. Publish
camerabefore or right afterstart_edit. - Start an edit. Call
start_editwith a reference image and an edit type. The phase moves throughstartingandwarming_uptolive.camera_forwardingturnstrueonce your camera reaches the model.video_receivingturnstruewhen edited frames arrive. Use these fields to show progress. The first edited frame can arrive after the phase becomeslive. - Switch. Call
switch_referenceto change the image, the edit type, or both. The picture changes within a few seconds. - End the edit. Call
end_edit, or let the edit end at its time limit. The session stays open, sostart_editworks again.