Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobile-friendly audio player for Rails app?

I'm currently building a Rails app, where a user can upload an mp3 and listen to it. I'm using paperclip for the data upload, but I'm not sure how I'd arrange the playback of the soundfile, so that it can be used on a mobile phone as well (so no flash).

Thoughts?

like image 483
ernesto50 Avatar asked Jan 29 '26 14:01

ernesto50


2 Answers

The two main cross-browser media playback frameworks are jPlayer and SoundManager.

Both will handle playback of your audio, regardless of device. Both will play the audio using either HTML5 or Flash according to

  • which solution is available
  • which solution you specified as higher priority (e.g. use HTML if available, Flash if not)
like image 114
Lloyd Avatar answered Feb 01 '26 06:02

Lloyd


I'm using JW Player and I'm very happy about it. There is a HTML 5 mode that runs on newer mobile devices like the iPhone.

like image 41
iltempo Avatar answered Feb 01 '26 06:02

iltempo