TUAW posted an article today about using the private API for streaming video over AirPlay which apple does not currently allow for 3rd party developers. AirPlay can only be audio for us right now. In it, the article shows a 1 line code for MPMoviePlayerController that can allow this for any video.
My question is, how would one go about to write an app that can gain access to the Camera Roll videos, begin playing it, and put in this code to allow for streaming videos shot with the iPhone to the Apple TV2? I know that it can't go in the AppStore, I really just want something I can use personally to instantly put videos up on the screen of my 1 year old son. Any ideas?
Code:
self.movieController = [[[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:CINDY_PATH]] autorelease];
[movieController setAllowsWirelessPlayback:YES];
movieController.view.frame = self.view.bounds;
[self.view addSubview:movieController.view];