I am writing an application that reproduces a URL using MPMoviePlayerController. The application runs in the background, and broadcast use also works with ATV, macmini using airserver and XBMC. The URL of the movie file on the local network. The way I understand it is that the phone does not make a heavy lift, but simply passes the URL to the apple TV and as long as the URL points on the media supported by AppleTV, then it will play.
The problem that I encountered is that the Apple TV must aggressively ping the iphone and keep Wi-Fi active, as the battery life is very difficult. Playing medium-sized movies can save you about 2/3 battery life on the iPhone 3GS and 1/2 on the iPhone 4S.
If I play on mac mini using an air server , the battery life on the phone decreases at the same speed as if the phone was and did not play anything. I noticed that if I stop Wi-Fi on the iphone, then the movie will continue to play on the mini-mini, but it stops for about 30 seconds on the ATV. I assume that ATV continues to push the event, saying that it is playing, and if it does not get OK in return, it stops playing.
Is there something I'm doing wrong? Did other people have the same battery leaks using streaming from the phone? I tried another application and he did the same too.
source share