swift play video from the gallery
<p>I wish to play video from local library to my MPMoviePlayerController.
If I put the video to my bundle it will work</p>

<pre><code>let selURL = "sample"
let pathToEx1 = NSBundle.mainBundle().pathForResource( selURL, ofType: "mp4")
</code></pre>

<p>but if it is from the library it is not.</p>

<pre><code>    let selURL = "file:///Users/Vinod/Library/Developer/CoreSimulator/Devices/G3G533F0-E16A-40DB-A6F1-GH67GFR89AF/data/Media/DCIM/100APPLE/sample.mp4"
let pathToEx1 = NSBundle.mainBundle().pathForResource( selURL, ofType: "mp4")
</code></pre>

<p>The second code fails. How can I run video from the gallery or my folders?</p>