feat: 添加视频帧截取-WebAssembly版,支持MP4MOVAVIWebMMKV等主流格式

This commit is contained in:
xiaoxian521
2023-07-18 12:35:13 +08:00
parent 611b591da8
commit fe5ed68ff7
11 changed files with 17204 additions and 0 deletions

View File

@@ -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}`;