提交 40d8b0ad 编写于 作者: Q qiang

fix(App): compressVideo filename

上级 fc9e7f63
......@@ -9,10 +9,10 @@ import {
} from '../util'
export function compressVideo (options, callbackId) {
const dst = `${TEMP_PATH}/compressed/${Date.now()}_${getFileName(options.src)}`
const filename = `${TEMP_PATH}/compressed/${Date.now()}_${getFileName(options.src)}`
const successCallback = warpPlusSuccessCallback(callbackId, 'compressVideo')
const errorCallback = warpPlusErrorCallback(callbackId, 'compressVideo')
plus.zip.compressVideo(Object.assign({}, options, {
dst
filename
}), successCallback, errorCallback)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册