javascript - Why wavesurfer (js) music player does not work correctly with mp3 formated files? -


i trying use wavesurfer music player website figured out not work mp3 files. copied example code, , works , not work when replace file url!

html code

<div id="waveform">   <audio id="song" style="display: none" preload="false"     src="https://ia902606.us.archive.org/35/items/shortpoetry_047_librivox/song_cjrg_teasdale_64kb.mp3"></audio> </div> 

and js:

var wavesurfer = wavesurfer.create({     container: '#waveform',     backend: 'mediaelement',     mediatype:'audio',     normalize: true,     barwidth: 3 }); wavesurfer.load(document.queryselector('#song')); 

now can play mp3 files not play wave form of song missing. can please me this?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -