Passing parameters to SMIL widgets
The SignageOS SMIL Player enables users to pass custom parameters to SMIL widgets. Here is a brief guide on how to accomplish this:
-
Define your SMIL file and all necessary elements
-
Create a widget element
-
Include the source URL for the widget with parameters
- Parameters in the URL are defined after the "?" symbol and are always in a key-value pair format, as 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" duration="10s" region="left"/>
</seq>