External CSS files can be loaded during Player load time to override the Player core CSS classes. This recipe shows how to leverage the external CSS loading functionality to quickly customize the player look-and-feel.
To override the Player core CSS classes, you can load external CSS files during Player load time.
This recipe shows how to leverage the external CSS loading functionality to quickly customize the Player look-and-feel.,The core CSS classes are defined here:
This workflow has no steps. Try adding one.
You still haven't completed step 1
To begin:
To know which elements and classes to override, use your browser "developer tools" and inspect the various elements you wish to change.
You can also review the full core skin CSS file kdark skin (the default player skin) and the ott skin (the OTT-TV skin) to learn more about the available elements and classes.
When creating your skin, verify the following:
To load your custom CSS, add the IframeCustomPluginCss1
flashvar to your Player embed code (or add it through the Player Studio UIVars section).
For example: flashvars: {IframeCustomPluginCss1: pathToMy/externalCustomCSSFile.css}
You can define more than one custom CSS files accordingly: IframeCustomPluginCss1
, IframeCustomPluginCss2
, IframeCustomPluginCss3
, etc.
The example below assumes that you have created your custom CSS file under the externalResources
folder and using the IframeCustomPluginCss1.css
filename.
Set the values below to try this step
kWidget.embed({
"targetId": "kaltura_player",
"wid": "_",
"uiconf_id": ,
"flashvars": {
//externalResources/IframeCustomPluginCss1.css is the custom CSS file you've created
"IframeCustomPluginCss1" : "externalResources/IframeCustomPluginCss1.css"
},
"entry_id": ""
});
Copy to clipboardYou can learn more about the operations used in this workflow by visiting the API Console and Documentation
media.get | Console | Documentation |