Adobe Apollo and Last.fm: Proof of concept

May 25th, 2007

I have been toying around with the idea to write an Adobe Apollo application that’s able to monitor your favorite media player (such as Winamp, Windows Media Player, iTunes, Rhythmbox, etc) for play back status and song information.

Last.fm provides an application along with plugins for pretty much all existing media players on all major platforms (Windows, MacOS, Linux, etc) that does exactly that. During installation of the Last.fm client, the user is prompted to install the required plugins for the media players she uses. When a media player executes and plays a song, the plugin establishes a TCP socket connection with the client application and sends status and song infos.

The problem: The Apollo runtime (alpha) that is currently available on Adobe Labs doesn’t provide any documented way of (a) talking to shared libraries, (b) launching executables or (c) serving as a socket server, and Adobe indicated that Apollo likely is not going to support those features in it’s 1.0 release version.

There is hope though. Afaik, the last word on launching executables at runtime from an Apollo app isn’t spoken yet, and there exist some undocumented hacks that enable Apollo apps to do just that. If Adobe should decide against letting apps launch executables, then the only way of solving it is to provide second installers that install a socket server of some sort to do the dirty work.

However, i sat down last night and wrote a proof of concept Flash application that can live in Apollo, which talks to a custom daemon via sockets. The daemon in this proof of concept runs as a Windows Service. I took the Last.fm iTunes plugin and modified a bit so that it also connects to that daemon. The daemon then simply echoes the messages it receives from the Last.fm plugin to the socket listener in Flash. Voilà.

Here’s a screenshot of the app in action (iTunes on top, Flash below):

iTunes talking to Flash

[Update] I also modified the Last.fm Windows Media Player plugin to work with my daemon. All plugins can be used simultaneously. See this screenshot (Windows Media Player on top, Flash below):

Windows Media Player talking to Flash

Note that this is only a proof of concept, and sources aren’t ready for release yet. I would very much like to make this an open source project (The Last.fm plugins are released under GPL), so if there are any interested developers out there who like to help, please contact me or leave a comment. Thanks!

Size Matters

April 12th, 2007

Big propz to Adobe for sending me a set of HUGE (and beautiful!) Flex 2 and AS3 API posters! It didn’t even take a week to arrive here in São Paulo. Sah-weeet! Thanks a bunch, much apprechiated!

Flashconference 2007, May 4th, Stuttgart, Germany

March 27th, 2007

Just to let you know that i’ll be speaking at the 9th annual Flashconference in Stuttgart, Germany on May 4th. My presentation is about the new Actionscript 3 Flash UI Components that come with Adobe Flash CS3. I’ll give an overview on what’s new, what’s different with respect to previous components sets and Flex, if and how to use them and how to skin and subclass them. I was part of the CS3 components dev team together with the guys at gskinner.com so hopefully i have some interesting things to show. If things work out well i’ll probably also be showing some FC64 stuff i was working on lately.

If you’re in central Europe early May, please drop by. Among others, Mario Klingemann, Andre Michelle, Peter Elst and Marcos Weskamp will be presenting, and as the flashconference is taking place as part of the fmx (”12th International Conference on Animation, Effects, Realtime and Content”, May 1st-4th), there’s almost a full week of top notch events to attend.

Check out the full schedule here.

I’ll stay in Germany for two weeks and will be traveling Munich, Stuttgart and Bremen, so if you like to meet, please drop me a line!

DENG is back!

November 22nd, 2006

The DENG Modular XML Browser project finally has a new home. Over the last two years, i switched hostings twice (don’t ask), and DENG was scattered all over the internets, and many things got lost.

I finally sat down to clean up the mess and everything is in one place again. The project homepage features a small news section, the feature matrix, examples (i’ll add more every now and then, so be sure to check back), downloads (includes examples on how to integrate DENG into your Flash projects and HTML pages as well as the source code of course) and support (you can support us by donating via PayPal now, and we can support you via our forum and mailinglist, and we offer individual support too).

Nothing terribly new there, but i thought i let you know.

I’m working on DENG 2.0 (Actionscript 3 implementation) whenever i find some free time, so stay tuned. May take a while yet though until i have something halfway meaningful to show.

http://deng.com.br/

MSN, Yahoo!, ICQ and IRC in Flash 8 - 6kbytes.com

November 22nd, 2006

An old friend of mine from Argentina contacted me recently and showed off his work. I was impressed.

6kbytes.com integrates all your messenger accounts (MSN, Yahoo!, ICQ, IRC) into one slick Flash 8 interface. And it’s all free.

As far as i understood, communication is done via XMLSockets to a Jabber server that is used as a gateway to other messaging servers/protocols.

Good job, Francisco!

Mars

October 29th, 2006

I just learned about Adobes “Mars” project via John Dowdell:

Mars is the code name for a project developing an XML-based representation of PDF documents.

Interesting.

Reading the Mars FAQ on Adobe Labs, i found this little gem:

Can an end-user create a Mars document?

Anyone over the age of 18, or minors with parental permission, can create a Mars document.

Uh?

1337! FC64 demo updated.

October 18th, 2006

In celebration of todays release of the Flash Player 9 for Linux beta, i finally updated the demo of FC64, our C64 emulator for Flash Player 9.

Some time ago i implemented support for sprites and the lo-res bitmap mode, so quite some more games work on FC64 now, including Elite (see screenshot below - i added it to the demo), Fort Apocalypse, Frogger, Donkey Kong, and a whole bunch of others.

Also, Voidrunner renders properly now, including the sprites in its intro.

Check it out:
http://codeazur.com.br/stuff/fc64_final/

O’Reilly Code Search

September 21st, 2006

Via BoingBoing:

Tech-books publisher O’Reilly Media has launched Code Search, a single place to search all the code examples in every O’Reilly book - 2.6 million lines of code!

Neat!

FC64 Interview

September 16th, 2006

The fine folks at gotoandplay.it recently interviewed Darron and me about FC64 - what it’s about, how we did it, and what our plans are. Go check it out!

FC64 wins Flashforward Film Festival

September 15th, 2006

Darron already blogged it: FC64 won Flashforward Film Festival in the Technical Merit category. Ohhh yeah!

I promised i show you the FC64 trailer that was shown at the ceremony, so here it is:

http://codeazur.com.br/stuff/fc64_final/flashforward/

(takes a while to load, i didn’t bother writing a preloader)

The fun part of it is that the trailer is written in 6502 assembly and executed by FC64. Even more fun: FC64 loads the assembly sourcecode at runtime, compiles and executes it. The scrolling arrows are actually lots of custom 8×8 pixel characters, animated by the C64 graphic chips smooth scrolling feature. I used raster interrupts to switch scrolling off in the middle part where the text appears (we don’t want that to scroll).

Ok, i also cheated a bit. Credits go to Andre Michelle: i ripped the Super Mario mod off his fantastic mod player. SID emulation in FC64 is being experimented with at the moment by Martin Wood and Ralph Hauwert, but we don’t have anything stable to show yet. Be patient :)