wavesurfer.js not showing. but playing #3986
Unanswered
MarcSkovMadsen
asked this question in
Q&A
Replies: 1 comment
-
If it plays but doesn't show a waveform, it most likely means that it failed to decode the audio with Web Audio. You can check what error is thrown by doing this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I'm trying to help a user of HoloViz Panel using wavesurfer.js in https://discourse.holoviz.org/t/wavesurfer-js-time-series-and-spectrograms-just-how-hard-can-it-be/8491.
Panel is the 3rd most used dashboarding framework in Python according to latest Jetbrains developer survey.
Bug description
I can get wavesurfer playing. But not showing.
Environment
Minimal code snippet
Create a file
app.py
.Serve the application with
You can also run this in the browser here without installing or serving anything.
When I click the wavesurfer container element it starts playing. But the wavesurfer is never shown. Inspecting the browser console elements I can see that the
canvas
elements are never created. But I do see some activitity in thediv
elements that should contain the canvas elements.For context Panel is also displaying elements inside shadow dom. So could that cause the issue?
Expected result
Wavesurfer would should
Obtained result
Wavesurfer not showing
Video
wavesurferjs.mp4
Beta Was this translation helpful? Give feedback.
All reactions