title: Show DVR cameras video on iPhone by HTTP Live Streaming
body: <p>I searching a lot but cant find coding part. <strong><a href="https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html" rel="nofollow noreferrer">HTTP LIVE VIDEO STREAMING INTRO</a></strong>.</p>
  
  <p><img src="https://i.stack.imgur.com/tWOJw.jpg" alt="ts file image"></p>
  
  <p>In this Link i want to know how to make index file and '.ts' file and how to implement in iPhone. I have done that coding.</p>
  
  <pre><code>   -(void)replayVedio
  {
           NSURL *url = [NSURL URLWithString:@"http://www.cwtmedia.se/cwtiphone/cwtvideo.mp4"];
      moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
      [moviePlayer setControlStyle:MPMovieControlStyleDefault];
      moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
      CGRect frame;
      if(self.interfaceOrientation ==UIInterfaceOrientationPortrait)
          frame = CGRectMake(0, 0, 320,400);
      //    else if(self.interfaceOrientation ==UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation ==UIInterfaceOrientationLandscapeRight)
      //        frame = CGRectMake(0,0, 210, 170);
      [moviePlayer.view setFrame:frame];  // player's frame must match parent's
      [self.view addSubview: moviePlayer.view];
      [self.view bringSubviewToFront:moviePlayer.view];
  
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(moviePlayBackDidFinish:)
                                                   name:MPMoviePlayerPlaybackDidFinishNotification
                                                 object:moviePlayer];
  
  
      [moviePlayer prepareToPlay];
      [moviePlayer play]; 
  
   }
  </code></pre>
  
  <p>but i dont want that. I want This</p>
  
  <p><img src="https://i.stack.imgur.com/4V0F7.jpg" alt="enter image description here"></p>