title: Swift AVPlayer Won't Player MP4: Play Button With Line Through It
body: <p><a href="https://i.stack.imgur.com/qHpi6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qHpi6.png" alt="enter image description here"></a></p>
  
  <p>I am trying to player an mp4 video from the local file system on an ios app. The video is about an hour long and can be played on quicktime. I am able to play an mp4 if it is from the web (NSURL(string: "http:domain.com/vid.mp4")). I am playing the video like below:</p>
  
  <pre><code>    let steamingURL:NSURL = NSURL(string: video.filePath)! //valid path
      let player = AVPlayer(URL: steamingURL)
      player.allowsExternalPlayback = false
  
      PlayWorkoutViewController.playerController = AVPlayerViewController()
      PlayWorkoutViewController.playerController.player = player
      self.addChildViewController(PlayWorkoutViewController.playerController)
      self.view.addSubview(PlayWorkoutViewController.playerController.view)
      PlayWorkoutViewController.playerController.view.frame = videoContainerView.frame
      PlayWorkoutViewController.playerController.showsPlaybackControls = false
      player.play()
  </code></pre>
  
  <p>Do I need to change some of the settings to play the longer video? Thanks.</p>