@arraypress/waveform-player 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1746,6 +1746,7 @@ var WaveformPlayer = class _WaveformPlayer {
1746
1746
  this.setLoading(true);
1747
1747
  this.progress = 0;
1748
1748
  this.hasError = false;
1749
+ this.container.classList.remove("waveform-is-placeholder");
1749
1750
  if (this.audio) {
1750
1751
  this.audio.src = url;
1751
1752
  await new Promise((resolve, reject) => {
@@ -1781,6 +1782,7 @@ var WaveformPlayer = class _WaveformPlayer {
1781
1782
  } catch (error) {
1782
1783
  console.warn("[WaveformPlayer] Using placeholder waveform:", error);
1783
1784
  this.waveformData = generatePlaceholderWaveform(this.options.samples);
1785
+ this.container.classList.add("waveform-is-placeholder");
1784
1786
  }
1785
1787
  }
1786
1788
  this.drawWaveform();