This guide is for React.js applications (Create React App, Vite, custom setups).For Next.js, see the Next.js VideoEditor Integration guide.
Prerequisites
Node.js 18+
Node.js 18 or newer
React 18 or 19
React 18 or React 19 — both work. Version 2 does not pin React.
Storage Space
~40MB for WASM modules
Installation
1
Install the SDK
2
Install Required Dependencies
3
Copy WASM Files
Copy the required WASM modules to your public folder:
4
Verify Files
Your
public/ folder should contain:Automate WASM Copy with npm Script
Automate WASM Copy with npm Script
Add this to your Create
package.json:package.json
scripts/copy-wasm.js:scripts/copy-wasm.js
VideoEditor Interface
Core Props
View Callback Types
View Callback Types
Step-by-Step Integration
Step 1: Create Your Component
src/components/VideoStudio.js
Step 2: Implement File Selection
Step 3: Implement Export Callback
Step 4: Render the Editor
Video Processing
Understanding Export Performance
The VideoEditor uses FFmpeg (WebAssembly) for video processing. This happens entirely in the browser.
- 720p 10s video: ~30 seconds
- 1080p 30s video: ~2 minutes
- 4K video: May not work (memory constraints)
Export Options
- Direct Download
- Upload to Server
- Convert to Base64
Theme Customization
Complete Example
View Full Component Code
View Full Component Code
src/components/VideoStudio.js
Troubleshooting
WASM Files Not Loading
WASM Files Not Loading
Symptom: “MediaInfoModule.wasm 404 Not Found”Solution:
- Verify WASM files are in
public/folder - Restart dev server
- Hard refresh browser (Cmd+Shift+R)
Export Takes Too Long
Export Takes Too Long
Symptom: Export hangs or takes >5 minutesSolutions:
- Use shorter video clips (< 30 seconds recommended)
- Lower video resolution before editing
- Consider server-side processing for production
Mobile Not Working
Mobile Not Working
Symptom: VideoEditor fails on mobile devicesSolution:
Mobile is not supported. Detect and show warning:
Next Steps
Image Editor
Learn how to integrate the ImageEditor component
FAQ
Common issues and troubleshooting
Need help? Contact us at support@layermetry.com

