How to create a music player using ruby

I want to create a music player like itunes or media player using ruby.
Is it possible? How do i go about? I tried to google but could not find
what I wanted.
Thanks,
Tejaswini

Hi,

it depends whether you want to create only GUI for it or you want to
make
it actually play songs. For GUI you need only “normal” libraries. For
playing you have to find library which supports formats such as mp3,
ogg,
wma,… and supports play, pauste, stop, seek, e.t.c. and this is maybe
harder.

Cheers,

V.

Tejaswini Pedapati wrote:

I want to create a music player like itunes or media player using ruby.
Is it possible? How do i go about? I tried to google but could not find
what I wanted.

wxRuby (http://wxruby.rubyforge.org) includes the Wx::MediaCtrl which is
a GUI component that can play mp3s, mp4s, quicktime etc.

http://wxruby.rubyforge.org/doc/mediactrl.html

You can then create other GUI controls to list tracks, control playback
or whatever. A fairly basic example is included in the wxRuby
distribution.

http://wxruby.rubyforge.org/svn/trunk/wxruby2/samples/media/mediactrl.rb

I would expect that the other large GUI libraries (Gnome, QT) have
similar components so you may want to look into them as well.

a

Now I’m asking myself the same question and have no answer from my
inner. I’m using FXRuby to develop a desktop application and i want to
add in some way a music player which can reproduce music from a stream
on the internet. FXRuby does not provide any class or way to do
this(I’ve really looked inside) so I was thinking that maybe exist a
library that I can insert in some way in the Model part of my app,
because
the View part is covered: just a few buttons and widgets and got it
working, but I need the core functionality of a music player, any help
will be appreciated, thank you fellows.

On 06/01/2012 11:38 PM, Damián M. González wrote:

Now I’m asking myself the same question and have no answer from my
inner. I’m using FXRuby to develop a desktop application and i want to
add in some way a music player which can reproduce music from a stream
on the internet. FXRuby does not provide any class or way to do
this(I’ve really looked inside) so I was thinking that maybe exist a
library that I can insert in some way in the Model part of my app,
because
the View part is covered: just a few buttons and widgets and got it
working, but I need the core functionality of a music player, any help
will be appreciated, thank you fellows.

Have you checked out the SDL wrappers, like rubysdl or rubysdl-ffi? They
might cover your needs, though I’m unsure if they support streaming.

Check out Shoes - the simple-video sample plays virtually anything - I'm planning to beef it up as it plays more formats than my media player classic or windows media player!

http://shoooes.net/

Tejaswini Pedapati wrote:
I want to create a music player like itunes or media 
player using ruby.
Is it possible? How do i go about? I tried to google but could not find
what I wanted.
Thanks,
Tejaswini
  

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.18/1848 - Release Date:
14/12/2008 12:28

Wow I didn’t know about that wrappers, thank you, very usefull! I will
explore…

Well that’s very very nice lljk, good work! I’ll consider that option
thanks for answer.

hey there -

gtk2 (gnome2) has gstreamer built in, which works nicely for playing
local files and streaming.

here’s the audio player i worked out with gtk2 and shoes:

homepage: https://sites.google.com/site/gswax0/home

gem: gswax | RubyGems.org | your community gem host

source: GitHub - lljk/gsWax: greenShoes / gtk2 audio player for folks who miss their vinyl

  • j