KWIKplayer allows for full customisation of the player at setup, it can include both color and logo customisation.
In order to enable customisation for the player, and JSON object named "designStudio" needs to be added to the player.
designStudio contains all the possible customisation that can be added to the player.
One or more items can be included in the object. When an item is not included in the player, the default value for that item will be set instead. Color options cab be set either by number ('#ff00ff') or by rgba function ('rgba(0,0,0,0.5'). Transpancy set in rgba representation of the colours will be present on the player.
designStudio includes the following settings:
<script>
kwikMotion("player", {
sources: [ //video sources
{file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/playlist.m3u8"},
{file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/manifest.mpd"},
{file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/Manifest"}],
tracks: [{ //thumbnail tracks
file: "https://my-website.com/path/to/my/thumbnails.vtt",
kind: "thumbnails"
}
],
designStudio: { //our design options object
logo: "http://www.my-website.com/path/to/my/watermark.png", //URL to the watermark image.
hideLogo: false, //setting the variable to hide our watermark to false.
link: "http://www.my-website.com", //setting the link to be the link that clicking on the watermark will take the user to.
position: "bottom-left", //setting the watermark position to bottom left.
logoMargin: "30", //giving the watermark a 30 pixels.
primary: '#ffc0cb', //giving our player's buttons a pink colour
highlight: '#0000ff', //giving the highligh a blue color.
background: '#800080', //giving the player's items background a purple colour
thumbContainerBG: '#ffa500', //giving the thumbnails container an orange color
playProgressColor: '#ff0000', //giving the progressed part of the player's progress bar a red colour
loadProgressColor: '#00ff00', //giving the loaded part of the player's progress bar a green color
progressHolderColor: '#ffff00' //giving the remainder of the player's progress bar a yellow color
}
});
</script>