fix (audioplayer): issues with newer version of wavesurfer

This commit is contained in:
Mickael Kerjean 2023-04-22 18:14:12 +10:00
parent 44f9c35284
commit 50f27b5f9c
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ export function AudioPlayer({ filename, data }) {
wavesurfer.current.backend.startPosition = 0;
wavesurfer.current.backend.lastPlay = 0;
wavesurfer.current.backend.source.start(0, 0);
isPlaying ? wavesurfer.current.backend.ac.resume() : wavesurfer.current.backend.ac.suspend();
});
wavesurfer.current.on("loading", (n) => {

View file

@ -34,7 +34,7 @@
"react-selectable": "git+https://github.com/mickael-kerjean/react-selectable.git",
"react-sticky": "^6.0.2",
"rxjs": "^5.4.0",
"wavesurfer.js": "^6.6.3"
"wavesurfer.js": "^1.4.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.5",