@byteplus/amk编辑器
BytePlus AI MediaKit网络视频编辑器SDK用于媒体管理,多轨编辑,预览,并导出.
文档
见 整合网络编辑 SDK 用于设置、后端代理集成、认证和配置.
安装
npm install @byteplus/amk-editor
快开始
import { AmkEditor } from '@byteplus/amk-editor';
const editor = new AmkEditor({
container: document.getElementById('editor')!,
projectId: 'your-project-id',
endpoint: '/api/amk-proxy',
source: 'your-app-name',
theme: 'light',
});
await editor.whenReady();
// Release the instance when the page unmounts.
editor.destroy();
在浏览器中以明确大小的容器初始化. 通过您的后端创建工程并处理认证 。 SDK包括自己的React运行时间;原始媒体URL必须支持CORS. 完整配置参考整合指南.
许可证
需要有有效的商业许可证。 见 自由主义。 。 。 .