Using the data settings
Data settings are settings that you add to a DOM element (before being prepared by the SublimeVideo application) in order to alter it’s behaviour once prepared. You can write data settings in two ways
Each setting can be set via a
data- attribute on the DOM element.
<video data-autoresize="fit" data-on-end="stop" ...>
If you have multiple settings to specify, you can also group them in a single
data-settings attribute, as a CSS-like formatted string.
<video data-settings="autoresize: fit; on-end: stop;" ...>