Quote:
Originally Posted by DemOnstar
Are you saying that if this code is inserted into the original then it will work?
Or is this a stand alone option?
Where does this code go?
Ooooo, such excitement...
|
The code in the previous post is just an example of how html5 can play audio files.
This should work:
Code:
<audio controls>
<source src="{param}" type="audio/ogg">
<source src="{param}" type="audio/mpeg">
<source src="{param}" type="audio/wav">
Your browser does not support the audio element.
</audio>
It will playback mp3, ogg, and wav files only. If and only if, the browser supports playing back these type of files using html5.
you can give it a try and add a new BB Code just like what you did for this add-on and give it another name, for example "audio", would be good enough.
and then try it using [audio] tag.
I'm trying to figure out a way to use both based on whether the browser supports audio playback or not.