Unable to load audio from video tag
See original GitHub issueHey, thank you for testing and contributing to wavesurfer.js!
Please make sure you can check all of these points below before opening an issue:
(You don’t have to post this section)
- I have checked the FAQ and it doesn’t solve my problem.
- I have checked the documentation and it doesn’t solve my problem
- I have searched for already open issues which desribe my problem.
- The issue I’m having is related to and caused by wavesurfer.js, not by other software (which maybe packages and uses wavesurfer incorrectly) – In that case you should open the issue on the respective project pages.
Please make sure you provide the following information (if applicable):
Wavesurfer.js version(s):
- 3.0.0
- 3.1.0
Browser and operating system version(s):
Chrome 77.0.3865.90 macOS Mojave 10.14.6
Code needed to reproduce the issue:
https://codepen.io/qbunt/pen/GRKVBrd
let wavesurfer = WaveSurfer.create({
container: document.querySelector('#waveform'),
waveColor: '#A8DBA8',
progressColor: '#3B8686',
backend: 'MediaElement'
})
let video = document.querySelector('video')
wavesurfer.load(video)
Use behaviour needed to reproduce the issue:
I originally encountered this in Vue, but have since validated that it shows up in all contexts and is not related to Vue at all. When attempting to start WaveSurfer with a MediaElement
backend, and load a video element as the audio source, as shown in the docs, I get the following error consistently in every framework, and back to 3.0.0:
Uncaught Error: fetch url missing
at Object.t.default (fetch.js:118)
at t.value (wavesurfer.js:1448)
at t.value (wavesurfer.js:1398)
at t.value (wavesurfer.js:1322)
at pen.js:11
Either this is something incorrect in the documentation, or something in Chrome changed and the URL isn’t landing in the fetch
call due to an incorrect reference or similar.
Of course, if this is something obvious that I’m doing wrong, I’d be happy to update the docs if that is the issue. Thanks so much, great lib!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15
Top GitHub Comments
I ran into this same issue
@qbunt @aburai What can I do for this? let wavesurfer = WaveSurfer.create({ container: document.querySelector(‘#waveform’), waveColor: ‘#A8DBA8’, progressColor: ‘#3B8686’, backend: ‘MediaElement’ }) let video = document.querySelector(‘video’) wavesurfer.load(video)
When attempting to start WaveSurfer with a MediaElement backend, and load a video element as the audio source, as shown in the docs, I get the following error consistently in every framework:
Uncaught Error: fetch url missing at Object.t.default (fetch.js:118) at t.value (wavesurfer.js:1448) at t.value (wavesurfer.js:1398) at t.value (wavesurfer.js:1322) at pen.js:11