So I have been experimenting with many things lately and a lot of my experiments has really exposed the need for more libraries that developers can leverage when developing in flex/AIR/flash. Rather than complain about it I am trying to slowly write libs to fill my needs and hopefully get to a point where I can distribute on open source. One such experiment is with Apple’s Digital Audio Access Protocol (DAAP). Its relatively easy to leverage the protocol in As3. How easy? As easy as making a url request
[as]this.urlreq = new URLRequest(”http://localhost:3689/server-info”);
this.urlloader = new URLLoader();
this.urlloader.addEventListener(Event.COMPLETE,this.onUrlResponse);
this.urlloader.dataFormat = URLLoaderDataFormat.BINARY;
this.urlloader.load(this.urlreq);
[/as]
(See here for help on getting started with DAAP)
However I hit a stump with getting an application to “announce” itself on the network. To get maximum use from using DAAP I would need my app would need to announce itself by sending a datagram to a multicast address via port 5353. Problem is no UDP for flash. I could make some assumptions and scan addresses on a known segment (AIR’s SocketMonitor class is a good help with that) but that is a less than ideal solution. I have other more pressing projects that need my attention but I would like any ideas on how best to overcome this inconvenience. Is it possible to get a computer’s ip address using just actionscript/javascript (and then probably from there using SocketMonitor to monitor the 255 ips on that segment)? (yeah let me hear your bright idea
)





Shaleen
August 13th, 2007
Hi there,
I am doing my Masters in Computer Science at CSUS (www.csus.edu) and I need to do a project to complete my MS requirement.
I was looking some project definition at Google Summer of Code and found one interesting problem at XMMS site (http://wiki.xmms2.xmms.se/index.php/Summer_of_Code_2006/Proposed_projects#Support_for_DAAP). They want to have support for DAAP in their music player. Hence, I was searching DAAP tutorial and found your tutorial very helpful. I want to discuss more in detail regarding this project. Please let me know the best way to reach you. I really look forward to hearing back from you.
Thank you for providing detail about DAAP at http://tapjam.net/daap/ . It is really well written and helpful for beginers like me!
Once again thanks,
Shaleen
akeemphilbert
August 14th, 2007
It isn’t a project per se, but a quick feasibility experiment on leveraging Apple’s internetwork protocol to make applications using AIR(http://labs.adobe.com/technologies/air/). If you would like to discuss this further drop me an email at akeemphilbert at gmail dot com
Koen
April 22nd, 2009
Hi
I was trying to make an itunes remote via a flash/flex frontend.
I wanted to use the daap protocol but I always get a io error.
Somebody got it working in android so I thought I should be possible
to rewrite it in actionscript. http://dacp.jsharkey.org/
If I try the daap http requests via command line curl. I get a response so the pairing proces worked. but I dont know how to mimic this curl behaviour via urlrequest and so?
akeemphilbert
April 25th, 2009
I haven’t touched this further in a couple years but thanks for this new lead. Did you try using the request example I have in the post?