Issue
I know the New audio() is expecting a url but I am trying to load a local file and can not seem to get it to play. The path must be wrong cause it will play any existing url that I assign to a var including "data:audio/ogg;base64,T2dnUwACAA...". Example: "C:\Users\Jon\Desktop\tng-doorbell.mp3" will not play- it does nothing. Thanks.
Solution
You need to load it via a server like Apache or IIS. Try Wampserver
It has to be a URL over http://
and not file://
Answered By - Rohit Agre
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.