Any way to get the resource name of an existing AVAsset?
<p>I am interested in obtaining the resource name (aka filename) of an <code>AVAsset</code>, specifically an mp4 video. The asset was created with the resource name, I simply want to obtain that same string resource in the future when I have only the <code>AVAsset</code> instance. In this case how can I obtain <code>"my-video"</code> from the asset?</p>

<pre><code>AVAsset(URL: NSBundle.mainBundle().URLForResource("my-video", withExtension: "mp4")!)
</code></pre>

<p>I am able to obtain the asset's <code>title</code>, but this is not always the same as the resource name. And the filename is not in the asset's common metadata.</p>

<pre><code>var title = ""
for metadataItem in asset.commonMetadata {
    if metadataItem.commonKey == "title" {
        title = metadataItem.value as! String
    }
}
</code></pre>