fraudio
v2.4.0
Published
Simple audio player
Downloads
14
Readme
fraudio
jQuery Audio Player - simple styling and simple to use
Installation (npm)
npm i fraudio
Usage
- Include
jquery
,fraudio.js
andfraudio.css
on your page - Use the
fraudio
class and thedata-title
&data-artist
attributes on anaudio
element:
<audio class="fraudio"
src="/audio/Mozart_Divertimento.mp3"
data-title="Divertimento in D major K. 136 (III. Presto)"
data-artist="Wolfgang Amadeus Mozart"
></audio>
- You can also turn any audio element into a fraudio element with
$(element).fraudio();
- To turn on sequential autoplay, so that each audio will automatically play one after another, change the
sequential_autoplay
setting:
$.fn.fraudio.sequential_autoplay = true;
Extending & Debugging
- Download the code with
git clone https://github.com/freddyouellette/fraudio
- run
npm run build
in the base directory to compiledist/
files. Runnpm run watch
to automatically compile as you're coding.
Problems, Questions, Suggestions?
- I encourage all issues or suggestions to be submitted through the Issues tab on GitHub.
- Pull requests are welcome.
Links
Support Me
Bitcoin: bc1qs39glh9cwsef0qv40dny6ajnweqe2le7ynfgr2
Ethereum: 0x5Baba8708b8676afBFF2974b4af4894Fc12aE242