Audio previews like iTunes, Amazon Music.

Discussion in 'Web Design and Development' started by markfc, Jul 2, 2015.

  1. markfc macrumors 6502a


    Sep 18, 2006
    Prestatyn, Wales, UK

    I have a table with a list of songs, next to each song I want to put a play button which will play the associated .MP3

    I've tried the html 5 audio controls ;

    Your browser does not support the audio element.

    Which work great but each row of the table ends up with a full media player which looks messy.

    How can I get just the play button, similar to how iTunes and Amazon Music do it?

  2. D.T. macrumors G3


    Sep 15, 2011
    Vilano Beach, FL
    You want the html5 audio, but with your own styling (vs. the default browser audiocontrols UI), then you'll need some JS to trigger the audio API - I'd look into something like JPlayer, where they'd done most of that work for you :)

Share This Page