Skip to content Skip to sidebar Skip to footer

Force Play Mp3 Instead Of Download

I have a link say http://www.example.com/test (Please note: This is not a direct mp3 url) When I hit this url, it initiates a download of mp3 file. Right now I am using this

Solution 1:

You may use HTML5:

<audiosrc="/test/audio.ogg">
    Your browser does not support HTML5 audio player, please upgrade your browser.
</audio>

Or use a cross browser solution: http://mediaelementjs.com/

Solution 2:

Maybe you are looking for this:

HTML

<embedsrc="http://www.example.com/test">

Check embed tag here.

Post a Comment for "Force Play Mp3 Instead Of Download"