The editor has been removed from this core repository and moved to dedicated repositories. We now offer two official, open-source video editors built on top of OpenVideo:
| React Video Editor: GitHub Repository | Live Demo |
| Vue Video Editor: GitHub Repository | Live Demo |
Comprehensive documentation is available at docs.openvideo.dev.
npm install openvideo
import { Studio, Video } from 'openvideo';
// 1. Initialize the Studio (Project State & Preview)
const studio = new Studio({
width: 1920,
height: 1080,
fps: 30,
canvas: document.getElementById('preview-canvas') as HTMLCanvasElement,
spacing: 20
});
// 2. Load and add a Video Clip
const video = await Video.fromUrl('https://example.com/video.mp4');
await studio.addClip(video);
// 3. Start Preview
studio.play();
Studio: Manages the project state, including tracks, clips, and timeline configuration.Compositor: The rendering engine that handles playback, seeking, and final export using WebCodecs.Clips: Specialized objects for different media types (Video, Audio, Text, Image, Caption, etc.).JsonSerialization: Utilities to convert your entire project into a portable JSON format.For inquiries, support, or custom solutions, reach out to us at hello@openvideo.dev.
See LICENSE.