google chrome - HTML5 audio file fails to play, with Invalid Source error message -


i trying test if audio files have, can played via html5.

the html code follows:

<audio width="720" height="405" controls src="https://machinename/media/play?id=2" type="audio/wav"></audio> 

when page loads, seems doing something, , later fails message says invalid source.

if @ f12 more debugging info, says:

audio/video: unknown mime type

the content being rendered tag src="abc" wav file.

what missing? testing in ie11 , chrome 43. appreciated.

since seems popular question, explain error , how fixed it.

at first glance might seem setting src property url link not quite right, infact url link renders me wav file. wav not played html5 autio tag, because of encoding type; is, encoding of content of wav file. can mulaw, alaw, linear etc. alaw not supported format html5, changed mine ulaw, , working perfectly.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -