AVAsset.URL
-----------

Queries the URL used to open this asset.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVAsset](component_AVAsset.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVAsset.URL"; Asset ) 

**MBS**( **"AVAsset.URL";** /\* Queries the URL used to open this asset. \*/  
**$Asset**) /\* The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Asset | The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. | $asset |

### Result

Returns URL as text or error.

### Description

Queries the URL used to open this asset.  
Empty if no URL is available.  
### Examples

Queries URL used to open movie:

 MBS ( "AVAsset.URL"; $asset )  
### See also

- [AVAsset.OpenContainer](AVAssetOpenContainer.md)
- [AVAsset.OpenFile](AVAssetOpenFile.md)
- [AVAsset.OpenURL](AVAssetOpenURL.md)

This function checks for a license.

Created 19th June 2015 , last changed 30th May 2017

  
[AVAsset.TrackInfo](AVAssetTrackInfo.md) - [AVAsset.WaitForLoaded](AVAssetWaitForLoaded.md)

[HTML Version](AVAssetURL.shtml)