per http://en.wikipedia.org/wiki/AirPlay and from my own time spent on some reverse-engineering of AirPlay slideshows, videos, and music -- afaict nobody is quite sure how the custom view mirroring protocol works just yet.
a good reference to get started playing with airplay in ruby is https://github.com/elcuervo/airplay, although it is very limited. https://github.com/PascalW/Airplayer/tree/master/airplayer shows a bit more about how the server works, granted in python, for if you wanted to add to the elcuervo/airplay. http://code.google.com/p/airstream-media-player/source/browse/trunk/Server.cs is another bit of source, in .net, that is clearly the result of some good reverse-engineering. there is a lot of reverse engineering out there to analyze airtunes (audio streaming to apple tv, see for example http://blog.technologeek.org/airtunes-v2 but there are others), and some of the techniques described therein would probably help you deconstruct mirroring. my best guess based on apple being unlikely to re-invent the wheel entirely is that this protocol is based on their RDP work, which uses the VNC protocol, see http://en.wikipedia.org/wiki/Apple_Remote_Desktop and http://en.wikipedia.org/wiki/Virtual_Network_Computing. I would suspect that since it is coming from iOS to the appletv it is a carefully selected and more simplistic subset of that client/server code already in mac os x, and that in particular it might specialize any audio or video playing back to use standard airplay audio/video rather than the normal VNC means -- but that's just a guess. i would suggest using bonjour browser ( http://www.tildesoft.com/) to see what port/service your iTV device is offering up for mirroring and then capturing some traffic to/from it or your iPhone4S per airtunes reverse-engineering techniques. perhaps port 5900 or 5988, the RDP/VNC ports, but bonjour browser will show you specifically. cheers, n@ On Tue, Feb 14, 2012 at 9:26 AM, hamin <aminhar...@gmail.com> wrote: > Hey Guys, > > I know that from iOS devices you can mirror to an AppleTV with custom > views and sounds. I was wondering if it was possible to do that in > macruby somehow? I know about the airplay hacks which allow you to > play media on an AppleTV but I don't just want to play a media file, > but actually show a custom view. Any thoughts? > > Haris > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel