@arraypress/waveform-player 1.5.2 → 1.7.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.
package/src/js/themes.js CHANGED
@@ -125,6 +125,13 @@ export const DEFAULT_OPTIONS = {
125
125
  samples: 200,
126
126
  preload: 'metadata',
127
127
 
128
+ // Audio mode — 'self' = player owns the <audio> element (default, current
129
+ // behavior). 'external' = player is a visualization-only surface; no audio
130
+ // element is created, play() dispatches `waveformplayer:request-play`
131
+ // instead of calling audio.play(), and setPlayingState/setProgress are
132
+ // expected to be driven by an external controller (e.g. WaveformBar).
133
+ audioMode: 'self',
134
+
128
135
  // Playback
129
136
  playbackRate: 1,
130
137
  showPlaybackSpeed: false,