CSS customisation
To test this feature and view the example code, please see the Browsers and Connected TV SDK 5 Example Code Quick Start guide. This feature is not supported by the Reduced Size SDK.
CSS customisation provides the ability to personalise your player.
Modifying colours
The CSS style uses custom properties to define the elements’ colours. These can be modified in the given CSS file to give your player a personalised colour scheme. Each property and its effect is described in the table below.
Variable name | Affected element |
---|---|
| Big play button colour |
| Big play button colour on hover |
| Loading Spinner colour |
| Control bar colour |
| Control bar icon colour |
| Volume slider colour |
| Progress bar colour |
| Menu background colour |
| Selected element text colour |
| Selected element background colour |
| Control bar colour while in pip mode |
| Chapters title colour |
| Chapter marker colour |
| Chapter highlight colour |
Advanced customisation
To change more than the player colours, by examining the CSS in standalone-style.css
, you will see the additional CSS class opy-standalone
which increases the CSS specificity for the customisation. Use this as a guide to further customise your player.