title: Embedding videos in a tableview cell
body: <p>What's the best way for embedding a video into a UITableViewCell? I'm trying to build something sorta like Vine/Instagram.</p>
  
  <p>I'm able to handle asynch image loading really well with SD_WebImage..but unfortunately they don't support video. I also tried embedding with an MPMoviePlayer but it just appears as a black screen. This is what I tried:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      tableView.frame         =   CGRectMake(0, 0, view.bounds.width, view.bounds.height);
      tableView.delegate      =   self
      tableView.dataSource    =   self
  
      tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell")
  
      self.view.addSubview(tableView)
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      var cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("cell") as! UITableViewCell
      var moviePlayer : MPMoviePlayerController?
  
      let url = NSURL (string: "http://jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v")
      moviePlayer = MPMoviePlayerController(contentURL: url)
      if let player = moviePlayer {
          player.view.frame = CGRectMake(0, 100, view.bounds.size.width, 180)
          player.prepareToPlay()
          player.controlStyle = .None
          player.repeatMode = .One
          player.scalingMode = .AspectFit
          cell.addSubview(player.view)
      }
  
      return cell
  
  }
  </code></pre>