Editor
Editframe enables you to embed an interactive video editor into your app via a simple javascript class. The editor comes with Editframe branding out-of-the-box. Reach out to us if you would like to white-label the editor with your own logo and starting templates, or customize which features are made available to your users.
Please contact us at team@editframe.com to request access to the editor.
Initialization
import { Embed } from '@editframe/embed'
new Embed({
applicationId: string,
containerId: string // any valid html element id string,
config, // optionally provide a composition configuration json object produced by editframe-js
dimensions // defaults to { height: '100vh', width: '100vw'
layers, // optional list of layers to enable, defaults to all layers enabled
mode, // "composition" | "template"
templateName, // if mode is "template", the name of a template to load
})
Customizing features
feature | Description |
---|---|
layers | A comma separated list of layers that can be added to the composition |
mode | Customize how the end-user will interact with the video editor |
layers
The following layers are availabe to be passed to the layers
attribute when initializing the Embed
class:
Option | Description |
---|---|
audio | Enables the ability to add Audio layers to the video |
image | Enables the ability to add Audio layers to the video |
text | Enables the ability to add Text layers to the video |
video | Enables the ability to add Video layers to the video |
waveform | Enables the ability to add Waveform layers to the video |
Note: This parameter can only be used in conjunction in composition
mode
mode
The following modes are available for use with the mode
query param:
Option | Description |
---|---|
composition | Allow the end-user to construct a video from scratch (default) |
template | Allow the end-user to construct a video based on an existing template |
Compostion Mode Example
Here's an example of the video editor in composition mode with only the audio
and image
layers enabled:
import { Embed } from '@editframe/embed'
new Embed({
applicationId: 'APP_ID',
containerId: 'editor-2',
dimensions: {
height: '800px',
width: '100%',
},
layers: ['audio', 'image'],
})