mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-27 10:42:36 +01:00
fix (audioplayer): issues with newer version of wavesurfer
This commit is contained in:
parent
44f9c35284
commit
50f27b5f9c
2 changed files with 2 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue