---
title: loadAssetID
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/mediaitem/1627392-loadassetid
---

# loadAssetID

A callback function used to load the asset identifier for an item.

## Declaration

```data
readonly attribute Object loadAssetID;
```

## Discussion

Discussion This attribute must be set if FairPlay Streaming is supported. This attribute must be assigned to a function that takes two parameters, url and callback; for example, item.loadAssetID = function assetID(url, callback) {}. The callback function must be called with the asset identifier that was retrieved, or with null as the first parameter. The second parameter is error. For more information, see the FairPlay Streaming page.

## See Also

### Supporting FairPlay Streaming

- [loadCertificate](tvmljs/mediaitem/1627435-loadcertificate.md)
- [loadKey](tvmljs/mediaitem/1627379-loadkey.md)
