IE11: Fallback to MediaElement not working, it always tries to access AudioContext
See original GitHub issueREADME says that the player will fall back on audio element (without graphics) on browser that don’t support WebAudio (i.e. IE 11), but still it doesn’t look to work at all if WebAudio is missing.
IE 11, for example, throws an error because wavesurfer tries to access AudioContext
or window.webkitAudioContext
, I think from here: https://github.com/katspaugh/wavesurfer.js/blob/ff5d8b442bc503890068b5a206eaf9142fffbf1f/src/webaudio.js#L76-L77
You can test the issue just by opening the audio element example page on your site in IE 11. Here’s the error in the browser console (pardon the Italian locale, the red text says something like “Invalid action for the object”):
Maybe the fallback mechanisms has been dropped in newer releases? Thanks.
Wavesurfer.js version(s): 2.2.1
Browser version(s): Internet Explorer 11
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
That’s good news. Leaving the demo’s with .wav is fine then, if people want to use IE11 they’ll figure out MP3 is their only option.
@thijstriemstra It does work!