wavesurfer.js 7.6.1 → 7.6.3

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/dist/webaudio.js CHANGED
@@ -166,6 +166,9 @@ class WebAudioPlayer extends EventEmitter {
166
166
  this.gainNode.connect(this.audioContext.destination);
167
167
  }
168
168
  }
169
+ canPlayType(mimeType) {
170
+ return /^(audio|video)\//.test(mimeType);
171
+ }
169
172
  /** Get the GainNode used to play the audio. Can be used to attach filters. */
170
173
  getGainNode() {
171
174
  return this.gainNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wavesurfer.js",
3
- "version": "7.6.1",
3
+ "version": "7.6.3",
4
4
  "license": "BSD-3-Clause",
5
5
  "author": "katspaugh",
6
6
  "description": "Audio waveform player",