Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
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.
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];
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?
 
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.
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];
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?

That would be cool but better yet, how do we inject that code into every app that uses Video Player? Is that even possible via a jailbreak tweak?
 
That link seems to be down, could you provide another one, or help me find the thread on the apple forums?

Thanks.
 
Thanks for the BBO, but i'm not too sure how to approach this, do you have a link to the thread in question? Can you play the camera roll vids on your ATV with this?

Thanks again,

Ben
 
Thanks for the BBO, but i'm not too sure how to approach this, do you have a link to the thread in question? Can you play the camera roll vids on your ATV with this?

Thanks again,

Ben

Make sure you have the 4.2.1 SDK installed, you will need a certificate for development, open the project, select device (not simulator), plug in your phone and then build and deploy. Yes, it allows you to take video on your iPhone and then show it on your AppleTV from your Camera roll straight away with Airplay

If you Google (click this link http://www.google.co.uk/search?clie...oe=UTF-8&redir_esc=&ei=ilLxTNazJsGwhQeT_YzGDA) you can see the original threads that got removed. There were no instructions in them though.
 
This app will be submitted to Cydia either tonight or tomorrow. It will allow access to all videos in the photo library, and the ability to watch on device, or push to apple tv2 using airplay. Any suggestions for a name?
 
Sometime in the next day the app Air Home Video should be in Cydia. All 4.2.1 can airplay any movie in photo library to the 2nd Apple TV. In the iPad it will show Saved Photos instead of Camera Roll.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.