Create a player
Create a player for your video, and customise it.
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"
}Changes
Changed in 3 of the 50 revisions of this API.36
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
- ○
the endpoint scheme security
apiKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
the optional response header
X-RateLimit-Limitremoved for the status201optional-response-header-removed
- ●
the optional response header
X-RateLimit-Remainingremoved for the status201optional-response-header-removed
- ●
the optional response header
X-RateLimit-Retry-Afterremoved for the status201optional-response-header-removed
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
apiKeywas removed from the APIapi-security-removed
- ○
removed the non-success response with the status
429response-non-success-status-removed
This revision also has 32 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
Of the 50 revisions, 1 has no diff computed.