views:

29

answers:

0

Hi
In my application I am using MPMoviePayerController class's object to play audio(.mp3) files as well as videos(.m4v) files directly from the server. Few lines of code:--

MPMoviePlayerController *moviewPlayer = [[MPMoviePlayerController alloc initWithContentURL:[NSURL URLWithString@"myURLGoesHere"];
moviePlayer.view.frame = self.view.bounds;
[moviePlayer play];

I have a few confusions as I am using this class for the first time:--

  1. While playing audio when it streams, only controls that are shown on the control panel are the pause button and a message that says "streaming...". Is it the default behaviour of the MPMoviPlayerContrller?
  2. Is the control panel in case of audio and video differs?
  3. What if the connection breaks in between? Because we are not dealing with the connection if directly initializing the moviePlayer object with the url.