beaverlyhillsstudios / wavesurfer-blazor-wrapper

.NET6 Core wrapper around JS library: wavesurfer.js by katspaugh (https://wavesurfer-js.org/)
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Initializing multiple WavesurferPlayer instances will cause the waveform to not be displayed #10

Open codeox-he opened 1 year ago

codeox-he commented 1 year ago

If we use multiple Wavesurfer Players on a page, only the last Wavesurfer Player will work properly. for example:

<WavesurferPlayer ShowDefaultToolbar Url="/file/corp/eXun10005/rec/20231024/1698107752864.mp3"></WavesurferPlayer>
<WavesurferPlayer ShowDefaultToolbar Url="/file/corp/eXun10005/rec/20231024/1698110477390.mp3"></WavesurferPlayer>
<WavesurferPlayer ShowDefaultToolbar Url="/file/corp/eXun10005/rec/20231024/1698108695731.mp3"></WavesurferPlayer>

image

When using the WavesurferPlayer component in multiple Razor pages, the same phenomenon occurs: only the last loaded WavesurferPlayer can display normally.

MattBabbage commented 1 month ago

+1, @codeox-he ever find a solution?