You can use the property option to apply different delivery parameters according to your business logic or other parameters. To learn how to create and edit properties, please read this article.
property - string || function (optional)
The default property can't be deleted in the portal and will be applied in the following cases:
- you don't specify any property in dnaConfig
- the property set in dnaConfig doesn't match any property in the portal
- the property set in dnaConfig is "default"
To set your property, you need to pass the string to your video player set-up.
Example
dnaConfig: {
"property": "Live"
}
Advanced
To build your own property logic you can pass a function that takes the content URL and returns a property string. This is recommended if you want to apply various properties inside the same playlist.
Example
function propertyFn(contentUrl) {
// your own function logic
}
dnaConfig : {
"property" : propertyFn
}