提交 23208c27 编写于 作者: Q Qilong Zhang

medialibrary:fix wrong mediatype in createAsset

Signed-off-by: NQilong Zhang <zhangqilong3@huawei.com>
Change-Id: Id4eebd927a202d331d91d99a5f37509c2c39efc4
上级 4248707e
...@@ -843,7 +843,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext){ ...@@ -843,7 +843,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext){
const fileAssets = await media.getFileAssets(filesfetchOp); const fileAssets = await media.getFileAssets(filesfetchOp);
const dataList = await fileAssets.getAllObject(); const dataList = await fileAssets.getAllObject();
const asset1 = dataList[0]; const asset1 = dataList[0];
const creatAsset1 = await media.createAsset(fileType, fileName, path); const creatAsset1 = await media.createAsset(audioType, fileName, path);
const fd1 = await asset1.open('rw'); const fd1 = await asset1.open('rw');
const creatAssetFd1 = await creatAsset1.open('rw'); const creatAssetFd1 = await creatAsset1.open('rw');
await copyFile(fd1, creatAssetFd1); await copyFile(fd1, creatAssetFd1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册