Record video and post to youtube

Hi,

2 part question:

  1. Does anyone know how to record a short video of an iphone game in real time?

  2. Does anyone know how to upload a video to youtube in-game?

Is this for promotional purposes or do you want the recording to be an in-game feature for players? The standard way to capture video from Unity is to use Application.CaptureScreenshot to get individual frames and then combine them into a video using QuickTime Pro or other similar software. However, I doubt the iDevices have enough processing power to cope with this (at least not on any acceptable timescale). For a promotional video, you might get the best results by running the game in the editor with the ScreenShotMovie script from the Unify wiki.