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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -