Adding parameters to widgets
SignageOS SMIL Player allows its users to pass custom parameters into your SMIL widgets. Here is a short guide on how you can do this:
- Define your SMIL file and all necessary elements
- Create a widget element
- Add source URL for the widget with parameters
- Parameters within URL are defined after the ? symbol and always in a Key - Value pair, these parameters are defined in a standard Query string
Example:
<seq> <ref src="https://website.com/production/modules/a1b2c3.wgt?appUrl=https%3A%2F%2Fanotherwebsite.com%2Fapi%2Fgraphql&uniqueId=xyz123abcjhkl&" type="application/widget" dur="10s" region="left"/> </seq>