Monday, June 06, 2005

XUL Music!


It uses gstreamer for linux and DirectShow for windows. I'm hoping to write a mac version soon that will probably use quicktime.


Screen shot:




Linux binaries


xulmusic-0.1.tar.gz



Windows binaries


xulmusic-0.1.tar.gz


Update:


The linux binaries were built on a fedora core 3 machine, having dependencies on gstreamer-0.8


Update:


I forgot the most important part! This is a xulrunner package. To try it out you need to download xulrunner. I would get one of the nightlies from mozilla.org.
If you're curious about xulrunner the wiki page should provide a good starting place.

24 comments:

Martijn said...

Well, it was kind of complicated to get it going (having to unzip all kinds of stuff, and making shortcuts, etc).
Also, I get kind of garbled music.
But for the rest: really awesome!!!
XUL music, who had thought this was possible.

Anonymous said...

Would probably make better sense to package it as an FF extension - see MAB.

Alex Fritze said...

Hi Todd,
Very cool!
I'm currently working on an open-source Mozilla-based SIP/VoIP client which, among other things, contains a cross-platform audio/streaming lib.
Maybe we could collaborate?
Give me a shout if you are interested: alex at croczilla.com

Tazman said...

I was trying to find a component that would let me play music in a xulrunner app ( I have not yet tried to build an xpcom myself ).. But this looks great.. Hope you don't mind if I am going to play with this..

alex: what kind of files can your component play ?

Alex Fritze said...

tazman: so far only voip streams (iLBC, speex)

George said...

Oooooooh nice!
A million ideas come to my mind
A remote music player is one.
Have your music online, share it with everybody ;-)

Nice job!

XULPower said...

Hey guys,

How about putting together a blogroll of all XUL bloggers?
I just started mine here at blogspot and would like to know, besides Todd, who else is bloggin about XUL.

George
http://www.georgenava.com
http://www.bloxor.com

todd said...

tazman: Yep feel free to use my code however you like. I wrote it both to play my music and as an example for xulrunner...

Grauw said...

Ooh, this is awesome.

I hope you’ll make an official project out of it! With Winamp’s lack of updates and problems with e.g. UTF-8, I need something to replace it ^_^.

For starters, you might want to allow multiple file selection in the add file window, and change its title too (which is currently a bit... weird :)).

~Grauw

Anonymous said...

I'm very interested in XUL Music as an example "XUL+audio" program. Though I have a problem : I can run the GUI, select a song, but then, when I push the "play" button, I don't get any sound and nothing happens (no freeze, no play, no warning). I'm running Linux. I've checked that nothing is blocking my sound card, since I can play the file with XMMS.

Have you any idea? I'm very new to XUL programming.

Greg

Anonymous said...

nice music man!

Anonymous said...

Ok, it's me who had a problem under Linux. I think it comes from an old version of Gstreamer (0.6.3). It works fine under Windows.

Todd : is it possible to add a setPosition(in double position) to the xMTrack.idl file? Being forced to go to the closest second is not very convenient...

Anyway, good job, you should start a real project around this.

Greg

Anonymous said...

My wishlist :
* play(in long start, in long end)
* play(in double start, in double end)
* setPosition(in double position)

Thanks,
Greg

Anonymous said...

Could we have a look at the source code for the component ?

Anonymous said...

Click on the "Xul Music" title, or go to :
https://updates.simosoftware.com/repos/xulmusic

Greg

Anonymous said...

If you have wget, do :

wget -r -L -x https://updates.simosoftware.com/repos/xulmusic/

Greg

todd said...

I made some updates see my new post

tc said...

Top gear! This is the only XULRunner sample I can find on the planet -- with both XUL and XPCOM parts.

bronius said...

I'm anxious to get into xul dev for desktop but am failing to get this example up and running. I've followed the XULRunner Installation guide for 1.8.0.1, and I followed the installation instructions at the end of that, substituting your untar'd file path info. I see that there's now an executable under Program Files\MozillaTest, but when I dbl-click to execute, nothing happens that I can see... ideas?

todd said...

bronius,
I think you need to run the start.bat file in the package. Be sure it points to the correct xulrunner.exe... It has been a while for me now since I worked on this project, I hope to have some free time soon to work on it more

bronius said...

todd-
thanks for the know-how. I don't see anything but the essentials in the .gz for windows at the top of this post. If you have the time, I am a bit curious to see this thing whir, but it's not critical-- the one thing I really wanted to learn (chromeless fullscreen) to do I figured out I can do against the Mozilla install already on my machine afterall.

Still, good stuff.

Manikandan said...

Hi .nice blog.I am HR of a well-developing concern.I need to post jobs .can anybody suggest best way..
thank you............

Siemens said...

Top blog

claudette said...

hello todd!
could you please tell me how to embed audio and video files in a simple XUL-GUI? can I do this a similar way I do this in HTML? could you show me a small example, please?
I know thats not a forum, but I cannot find any information about this.
thanks a lot!
claudette

Reading list