/** * @description 视频相关的配置 * @author darin_l */ import { EMPTY_FN } from '../utils/const' export type UploadVideoHooksType = { before?: Function success?: Function fail?: Function error?: Function timeout?: Function customInsert?: Function } export default { // 显示“插入网络视频” showLinkVideo: true, // 插入视频成功之后的回调函数 linkVideoCallback: EMPTY_FN, // 服务端地址 uploadVideoServer: '', // 上传视频的最大体积,默认 2G uploadVideoMaxSize: 2 * 1024 * 1024 * 1024, // 一次最多上传多少个视频 uploadVideoMaxLength: 100, // 自定义上传视频的名称 uploadVideoName: '', // 上传视频自定义参数 uploadVideoParams: {}, // 自定义参数拼接到 url 中 uploadVideoParamsWithUrl: false, // 上传视频自定义 header uploadVideoHeaders: {}, // 钩子函数 uploadVideoHooks: {}, // 上传视频超时时间 ms uploadVideoTimeout: 30 * 1000 * 1000, // 跨域带 cookie uploadVideoWithCredentials: false, // 自定义上传 customUploadVideo: null, }