提交 29faee95 编写于 作者: 璃白.'s avatar 璃白. 🌻

feat:添加视频时长

上级 ba243d20
...@@ -453,7 +453,10 @@ export default { ...@@ -453,7 +453,10 @@ export default {
item.preload = true; item.preload = true;
return new Promise((res, rej) => { return new Promise((res, rej) => {
item.oncanplay = function() { item.oncanplay = function() {
res(item.duration); res({
src: item.src,
duration: item.duration
});
}; };
}); });
}); });
......
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
{ {
name: "call", name: "call",
icon: "aite", icon: "aite",
tip: "@用户", tip: "@好友",
startStr: "@", startStr: "@",
endStr: "" endStr: ""
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册