@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/README.md +59 -0
- package/dist/waveform-player.esm.js +4 -4
- package/dist/waveform-player.js +237 -41
- package/dist/waveform-player.min.js +4 -4
- package/package.json +1 -1
- package/src/js/core.js +287 -51
- package/src/js/themes.js +7 -0
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,
|