v1
latestOpenAPI 3.0.02026-07-175989869.3 KBPlayer Themes
Create a player
Create a player for your video, and customise it.
post/players
Request body
Example request
{
"name": "My nice theme",
"assets": {
"logo": "https://cdn.api.video/player/pl14Db6oMJRH6SRVoOwORacK/logo.png",
"link": "https://api.video"
},
"shapeMargin": 10,
"shapeRadius": 3,
"shapeAspect": "flat",
"shapeBackgroundTop": "rgba(50, 50, 50, .7)",
"shapeBackgroundBottom": "rgba(50, 50, 50, .8)",
"text": "rgba(255, 255, 255, .95)",
"link": "rgba(255, 0, 0, .95)",
"linkHover": "rgba(255, 255, 255, .75)",
"linkActive": "rgba(255, 0, 0, .75)",
"trackPlayed": "rgba(255, 255, 255, .95)",
"trackUnplayed": "rgba(255, 255, 255, .1)",
"trackBackground": "rgba(0, 0, 0, 0)",
"backgroundTop": "rgba(72, 4, 45, 1)",
"backgroundBottom": "rgba(94, 95, 89, 1)",
"backgroundText": "rgba(255, 255, 255, .95)",
"language": "en",
"enableApi": true,
"enableControls": true,
"forceAutoplay": false,
"hideTitle": false,
"forceLoop": false
}Response
Created
Example response
{
"trackUnplayed": "trackUnplayed",
"backgroundTop": "backgroundTop",
"link": "link",
"trackPlayed": "trackPlayed",
"linkHover": "linkHover",
"backgroundBottom": "backgroundBottom",
"enableControls": true,
"backgroundText": "backgroundText",
"enableApi": true,
"forceAutoplay": true,
"trackBackground": "trackBackground",
"createdAt": "2020-01-31T10:17:47Z",
"assets": {
"link": "path/to/my/logo/mylogo.jpg",
"logo": "mylogo.jpg"
},
"hideTitle": true,
"name": "name",
"text": "text",
"linkActive": "linkActive",
"forceLoop": true,
"playerId": "pl45KFKdlddgk654dspkze",
"updatedAt": "2020-01-31T10:18:47Z"
}