Please add a web-based audio player

Bug #555347 reported by daniel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Musica Web Application
Fix Released
Wishlist
Dustin Kirkland 
musica (Ubuntu)
Fix Released
Wishlist
Dustin Kirkland 

Bug Description

I absolutely love musica! I have all my music on a small ARM-based linux NAS (NSLU2) and am using musica via an ssh tunnel. While this works great, a nice enhancement would be to (optionally) being able to play the music directly, e.g. via a flash-based music player or even the new HTML5 <audio> element, preferably something that supports playlists.

Flash player options would be e.g. the Creative Commons or MPL 1.1 licensed http://flash-mp3-player.net/

Hope you like the idea,

Daniel

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 555347] [NEW] Please add a web-based audio player

Hi Daniel-

Thanks for the compliments, and the idea.

I often just use totem-mozilla to play mp3's in the browser with Musica.

I can't abide flash, but I'd be interested in something HTML5-ish that
supports playlists. Would you know how to write something like this?

:-Dustin

On Sun, Apr 4, 2010 at 4:10 PM, daniel <email address hidden> wrote:
> Public bug reported:
>
>
> I absolutely love musica! I have all my music on a small ARM-based linux NAS (NSLU2) and am using musica via an ssh tunnel. While this works great, a nice enhancement would be to (optionally) being able to play the music directly, e.g. via a flash-based music player or even the new HTML5 <audio> element, preferably something that supports playlists.
>
> Flash player options would be e.g. the Creative Commons or MPL 1.1
> licensed http://flash-mp3-player.net/
>
> Hope you like the idea,
>
> Daniel
>
> ** Affects: musica
>     Importance: Undecided
>         Status: New
>
> --
> Please add a web-based audio player
> https://bugs.launchpad.net/bugs/555347
> You received this bug notification because you are subscribed to Musica
> Web Application.
>

--
:-Dustin

Changed in musica:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Okay, I hacked on this a while tonight, and all-in-all, it's much easier said than done :-/

Here's what I've learned:
 * Firefox does not support embedded mp3 inside of <audio> elements (licensing issue), though .ogg works fine.

I played with mpg321, and I can get it to convert mp3's to ogg's (about 7 seconds for a 3 minute song). But this clearly isn't ideal for the amount of data that would need to be cached/stored, as well.

Revision history for this message
daniel (daniel309) wrote :

hmm, no mp3 on firefox doesnt sound good... but chrome supports mp3s in the audio tag. Dont know how well it works though (http://osdir.com/ml/chromium-bugs/2010-01/msg01648.html)

How about using a Java applet for embedded audio playback. Heres a very nice winamp clone (LGPL) that plays mp3 and ogg.
http://www.javazoom.net/applets/jlguiapplet/jlguiapplet.html

Im not giving up yet :-)

Thanks for looking into embedded audio player support,

Daniel

Revision history for this message
daniel (daniel309) wrote :

... for the sake of completeness. Here are two very nice html5 audio players:

http://simulacre.org/mootools-html5-audio-player/#

http://www.jezra.net/projects/pageplayer

daniel (daniel309)
Changed in musica:
status: Triaged → In Progress
status: In Progress → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'm not giving up either ;-)

Okay, so I think the "requirements" for me would be:

Primary (must haves):
 1) Is (reasonably simple) GPL code (ideally, not Java, but javascript okay)
 2) Works in Firefox
 3) Works with mp3's

Secondary (should haves):
 4) Works in Chromium/Chrome
 5) Works with ogg's

Tertiary (would be nice to have):
 6) Works with IE/Safari

I'm happy to release a musica that has a bundled web-based audio player as soon as we can satisfy 1-3, and we can work on 4-6 eventually.

Sound reasonable?

Revision history for this message
daniel (daniel309) wrote :

sounds good :-)

I just stumbled upon jPlayer, a MIT / GPL licensed audio player that:
- uses HTML 5 <audio> (ogg, mp3, ...) if the browser supports it
- falls back to "invisible" flash if html5 <audio> is not supported for the given file format

Basically, jPlayer covers all of your items 1-6, and nicely abstracts from individual html5 audio format capabilities

Heres a website with some demos:
http://www.happyworm.com/jquery/jplayer/latest/demos.htm

Heres a demo of its html5 audio browser capability checks:
http://www.happyworm.com/jquery/jplayer/HTML5.Audio.Support/

what do you think?

Revision history for this message
daniel (daniel309) wrote :

oh, and it has support for playlists (e.g. for the album view) too :-)

Changed in musica:
status: Confirmed → Fix Committed
Changed in musica (Ubuntu):
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Dustin Kirkland (kirkland)
Changed in musica:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package musica - 2.0-0ubuntu1

---------------
musica (2.0-0ubuntu1) maverick; urgency=low

  Add jPlayer (GPLv3) as an embedded javascript/flash mp3 player
  * debian/control, debian/install, debian/rules, index.php,
    jplayer.php, jplayer/js/Jplayer.as, jplayer/js/jquery.jplayer.min.js,
    jplayer/skin/jplayer.blue.monday.css: LP: #555347
  * debian/copyright: updated license info
 -- Dustin Kirkland <email address hidden> Mon, 08 Feb 2010 19:02:47 -0600

Changed in musica (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
daniel (daniel309) wrote :

awesome!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.