Skip to content

初始化数据

原始数据是创建视频项目的原始工程数据,数据结构和说明如下:

ts
const initData = {
  title: "未命名", // 项目标题
  createTime: 0, // 创建时间
  updateTime: 0, // 更新时间
  poster: "", // 封面
  width: 1920, // 尺寸
  height: 1080,
  background: {
    color: "#677C8A", // 背景
  },
  transitions: [], // 转场
  captions: [], // 字幕内容信息,
  elements: [], // 元素数据
  resouces: [], // 资源文件数据,资源文件的ID会和元素数据的resourceId进行绑定
  _hideLock: {}, // 轨道的锁定,隐藏操作数据
};

Powered by 四川爱趣五科技有限公司.蜀ICP备18034069号.