Give presentations on Apple TV with AirPDF and AirFlick
As I've been exploring the newest Apple TV, people keep asking to see if I can push boundaries in new directions. Apple TV's concept of a wireless video endpoint that connects to a large screen TV has excited a lot of people.Although I haven't yet been able to produce a way to show live game screens from iPhones (games are likely going to have to rely on local Apple TV resource processing for that, probably involving a unit jailbreak, at least at first), Apple's AirPlay does provide a ready way to give presentations using a Mac and Apple TV.
In the video that follows after the jump, you'll see a new tool that I put together in response to TUAW reader requests. It transmits PDF files a page at a time to Apple TV. Read on to learn more about how this works and how Mac developers can easily hook into Apple TV transmission.
Instead of building PDF viewing features into my AirFlick utility, AirPDF takes advantage of AirFlick's recently added external request support. External requests allow third-party programs to task the app using Apple's distributed notifications. The notifications work as follows:
// Notification: com.sadun.airflick
// RequestType := show-photo | play-media
// MediaLocation := url or file path
// Rotation := 0 | 1 | 2 | 3 (0 ^, 1 <, 2 v, 3 >)
// Transition := SlideLeft|Dissolve
// e.g. Photo
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
@"show-photo", @"RequestType",
@"/Users/ericasadun/Pictures/Spring 2010/EPho 3.JPG", @"MediaLocation",
@"1", @"Rotation",
@"SlideLeft", @"Transition",
nil];
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"com.sadun.airflick" object:nil
userInfo:dict deliverImmediately:YES];
// e.g. Video
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
@"play-media", @"RequestType",
@"/Volumes/MusicAndData/Core Media/TV/SampleVideo.avi", @"MediaLocation",
nil];
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"com.sadun.airflick" object:nil
userInfo:dict deliverImmediately:YES];
AirPDF converts each currently-displayed PDF page into a JPEG image, saves it to the computer's /tmp folder and then notifies AirFlick to show it. The notification carries the location of the resource and supporting information for how that item should be displayed.
This same notification approach can be used with any other app. I look forward to seeing simple Plex and Mac AirVideo Client add-ons that integrate with AirFlick, which still suffers from early and crude attempts to integrate transcoding directly into the app.
With enough time (something I'm always lacking), AirPDF's and AirFlick's technology could easily be ported to the iPad or iPhone, allowing end-users to take their presentations on the road without carrying a laptop. Unfortunately, I'm not sure whether Apple would allow these extensions past their App Store gatekeepers, so for now, my Sadun's Whiteboard product will remain tethered through a VGA or Composite/Component cable, and AirPDF users will need a Macintosh to present.
Are you working on an AirPlay solution or have something to say about some of the applications that have been appearing over the last few weeks? Drop a note in the comments and let us know what you're thinking.
You can download the software mentioned in this post from my site.
Share
Source: http://tuaw.com/tag/airplay
Categories
As I've been exploring the newest Apple TV, people keep asking to see if I can push boundaries in new directions. Apple TV's concept of a...
Add a Comment
I, too, look forward to Plex being extended to using a method like this. My purchase of the Apple TV was solely to use it as a Plex client. My hope being that someone would come up with a workable solution.
January 03 2011 at 4:09 PM Report abuse Permalink rate up rate down ReplyHow long until we just get a generic app that simply streams the display and audio output of a mac directly to the Apple TV? It would seem that's the natural progression of things here, and I'm not sure why it's much different than streaming any other video/audio stream... It would eliminate any need for these one-off solutions.
January 03 2011 at 1:46 PM Report abuse Permalink rate up rate down ReplyThe URL for the Mac Airvideo Client should be http://dl.dropbox.com/u/6713110/MacAirVideoClient/Site/Home.html
December 31 2010 at 7:39 PM Report abuse Permalink rate up rate down ReplyWhat happened with AirPlayer? It had never changed since 0.10 (AirFlick is alredy 0.21!!!)
December 31 2010 at 6:14 PM Report abuse Permalink rate up rate down ReplyHow about streaming iPad Keynotes to the Apple TV?
December 31 2010 at 2:25 PM Report abuse Permalink rate up rate down ReplyHere, here. I've been asking around and looking for exactly that kind of app that can stream Keynote presentations. I'd settle for one that will work off my MacBook Pro.
January 05 2011 at 12:10 AM Report abuse Permalink rate up rate down ReplyDeals of the Day
more deals- Used Apple iPad 32GB Wi-Fi Tablet for $200 + free shipping
- Apple iPod nano Multi-Touch 8GB MP3 Player for $100 + $8 s&h
- Cases for New iPad at HandHeldItems: Extra 20% off, $2 credit, from $3 + $3 s&h
- $15 Apple iTunes Gift Card for $8 for new Saveology customers
- Retro 80's Case for iPhone for $11 + $2 s&h
- HHI 360 Dual-View Stand Case for new iPad w/ $2 credit for $12 + $3 s&h
6 Comments