title: How to convert video data to NSURL
body: <p>I have a video I'm fetching from my server and receiving as data. I'm trying to cover the raw data into a URL so that I can use it to instantiate an AVPlayerItem and play the video on the phone. However, this code returns nil when I print "videoDataString". If I print "videoData" there is a result though. Here is my code where I try to convert, is my mistake the encoding part?</p>
  
  <pre><code>let videoDataString = NSString(data: videoData, encoding: NSUTF8StringEncoding)
  let videoURL = NSURL(string: String(videoDataString))
  </code></pre>