How to convert AVAsset to NSData using Swift?
<p>I have variable</p>

<pre><code>var videoFile: AVAsset!
</code></pre>

<p>and it contains (loaded with) MP4 video, already, so no need any URL to download or save to local disc.</p>

<p>I have need to convert that <strong>videoFile to NSData</strong> using <strong>Swift</strong>. How to do this conversion?</p>