Old School Cassette Player with HTML5 Audio

Vintage format meets modern web tech: an HTML5 audio player with realistic controls. Today we want to share an audio player with you that looks like an old school music cassette.

Old School Cassette Player with HTML5 Audio

View demo Download source

If you don’t know what a cassette is, you were probably born in the digital high-tech era, an era that is undoubtedly exciting and innovative. On the other hand, if you know what an audio cassette is, you belong to the older generation, the analog dinosaurs that know the painful connection between a pen and a cassette tape.

The invention of the compact cassette tape happened 50 years ago, so it’s time to celebrate:

“In 1962 Philips invented the compact audio cassette medium for audio storage, introducing it in Europe in August 1963 (at the Berlin Radio Show), and in the United States (under the Norelco brand) in November 1964, with the trademark name Compact Cassette.”

Compact Cassette, Wikipedia

Since the old-fashioned cassette player is disappearing, we wanted to commemorate it by sharing an old school cassette player build with HTML5 audio with you. It’s just an experiment and the idea is to imitate the behavior of a vintage cassette tape (play, stop, rewind, fast forward and side switch) and use HTML5 audio. The magnetic tape inside should move as well accordingly. It’s far from being a perfect imitation of the classic cassette tape, it’s really just a fun experiment. You will probably find many bugs!

See the demo Old School Cassette Player with HTML5 Audio

The beautiful cassette tape is by Mauricio Estrella and he shares his pixel-perfect PSD here:
Cassette – PSD File by Mauricio Estrella

The songs in the demo are by the highly talented Blue Ducks and Blank & Kytt:

The tape sound effects are from Pogotron’s sample on Freesound.org:
Tape Recorder.wav by Pogotron

For the volume control we used the great KnobKnob jQuery plugin by Martin Angelov.

The icon font that we use for the player controls are from the Font Awesome icon font by Dave Gandy and we’ve used Fontello for creating a custom set. The Font Awesome icon set is licensed under CC BY 3.0.

We really hope you enjoy this little time travel, turn your sound on and play with it and tell us if you got nostalgic ๐Ÿ™‚

Please note that this is highly experimental and for fun purpose only. There is no fallback for older browsers (irony!) and only super-funky disco moves are allowed! ๐Ÿ™‚

View demo Download source

Previous:
Next:

Tagged with:

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

View all contributions by

Website: http://www.codrops.com

Related Articles

Receive our bi-weekly Collective or official newsletter right in your inbox.

Which newsletter would you like to receive?

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.

Feedback 108

Comments are closed.
  1. 3

    I dont understand why it is not working for me…
    I putted 4 differents mp3 into songs folder, then in the file jquery.cassette.js I changed this line using the name of mp3 I want to use:
    songs : [ ’01.mp3′, ’02.mp3′, ’03.mp3′, ’04.mp3′, ’05.mp3′ ],
    I didnt put ogg versions, is maybe this?
    Thanks for reply ๐Ÿ™‚

    • 4

      uhmm, sorry I mean I put 5 mp3 tracks like this:
      songs : [ ’01’, ’02’, ’03’, ’04’, ’05’ ],

  2. 5

    guaaaaaaaaauuuuuuuuuuuuu!!!!!!!
    greeeeeeaaaaaaaat!!,
    to someone like me, so music is really important dy by day, Iยดll put in my website, right now!!
    excuse me my bad english

  3. 8

    Hi Manoela,

    thanks for your great articles! Any idea how to get this to work on other browsers (that support html5) and ios? Seems to be something in the buttons that is breaking it in some situations…

    Cheers
    J

  4. 10

    Woow, great fun!!

    Gonna use it for our radiostation website playing our radio shows.

    A little sad my iPhone doesn’t play the audio.

  5. 11

    Hi Stela! Nice Stuff! I am trying to change the source of the music but it’s not possible (I am trying to implement it in a WP theme, one of my own, just for fun!…) Could you give me some clues? Many thanks! Awesome development!

  6. 12

    Fantastic player. I’m a little surprised that it works like a charm in the current Firefox (Windows 7) but doesn’t play tracks longer than 1:20 minutes in the current Chrome browser (Windows 7). As long as the songs are shorter than 1:20 minutes, all is fine, in Chrome, too.

  7. 14

    Awesome!
    I’ll just don’t understand the following:
    When I’ll download the archive and run the index.html inside everything works perfectly unless I start index.html from a local server (xampp) it loads forever (http://127.0.0.1/casette/)…

    I thought might be a problem with a wrong path or something but nope that wasnt the problem.

    I’ll tried also changing songs same problem loads forever…
    Firebug didn’t log any issues. I thought it might be a mime problem so I’ll added them also to a htaccess but this seems not to be the problem it still loads forever…

    So in other words I can’t make it work on a local apache server ๐Ÿ™

    Kinda clueless here right now ๐Ÿ™

  8. 17

    It’s really really great player. I loved it. But i have a little problem, maybe it’s easy but i can’t figured it.

    I added my mp3 files and changed the line in jquery.cassette.js like this;
    songs : [ ’01’, ’02’, ’03’, ’04’ ]

    Player working on IE, but not working in FF and Chrome.
    Example: http://www.muratkaraoglu.com
    Can you help me?

    Best regards, Murat.

  9. 18

    That was more thought out than I thought it would be when I clicked through. Good job! I’m… glad we left those behind, and VHS.

  10. 20

    Really fantastic. Is there any way to make it play automatically on document load?

  11. 21

    nice but, on IE the string of tape suddenly getting bigger after done playing..

  12. 22

    i really love this! quite a long time i never saw something as cool as this…

Comments are closed.