mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: 添加视频帧截取-WebAssembly版,支持MP4、MOV、AVI、WebM、MKV等主流格式
This commit is contained in:
@@ -43,6 +43,7 @@ function init() {
|
||||
|
||||
// 当音频已解码并可以播放时触发
|
||||
wavesurfer.value.on("ready", () => {
|
||||
if (!wavesurfer.value) return;
|
||||
const { duration } = wavesurfer.value;
|
||||
const { m, s } = getTime(duration);
|
||||
totalTime.value = `${m}:${s}`;
|
||||
|
||||
Reference in New Issue
Block a user