api.video
  1. Players
api.video
  • Account
    • Show account
      GET
  • Analytics
    • List live stream player sessions
      GET
    • List player session events
      GET
    • List video player sessions
      GET
  • Authentication
    • Authenticate
      POST
    • Refresh token
      POST
  • Live
    • List all live streams
      GET
    • Create live stream
      POST
    • Delete a live stream
      DELETE
    • Show live stream
      GET
    • Update a live stream
      PATCH
    • Delete a thumbnail
      DELETE
    • Upload a thumbnail
      POST
  • Players
    • List all players
      GET
    • Create a player
      POST
    • Delete a player
      DELETE
    • Show a player
      GET
    • Update a player
      PATCH
    • Delete logo
      DELETE
    • Upload a logo
      POST
  • Videos - Delegated upload
    • Upload with an upload token
      POST
    • List all active upload tokens.
      GET
    • Generate an upload token
      POST
    • Delete an upload token
      DELETE
    • Show upload token
      GET
  • Videos
    • List all videos
    • Create a video
    • Delete a video
    • Show a video
    • Update a video
    • Upload a video
    • Show video status
    • Pick a thumbnail
    • Upload a thumbnail
  • Captions
    • List video captions
    • Delete a caption
    • Show a caption
    • Update caption
    • Upload a caption
  • Chapters
    • List video chapters
    • Delete a chapter
    • Show a chapter
    • Upload a chapter
  • Webhooks
    • List all webhooks
    • Create Webhook
    • Delete a Webhook
    • Show Webhook details
  1. Players

Upload a logo

POST
/players/{playerId}/logo
The uploaded image maximum size should be 200x100 and its weight should be 200KB. It will be scaled down to 30px height and converted to PNG to be displayed in the player.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ws.api.video/players/pl14Db6oMJRH6SRVoOwORacK/logo' \
--form 'file=@"mylogo.jpg"' \
--form 'link="path/to/my/logo/mylogo.jpg"'
Response Response Example
201 - Example 1
{
    "assets": {
        "link": "path/to/my/logo/mylogo.jpg",
        "logo": "mylogo.jpg"
    },
    "backgroundBottom": "rgba(94, 95, 89, 1)",
    "backgroundText": "rgba(255, 255, 255, .95)",
    "backgroundTop": "rgba(72, 4, 45, 1)",
    "enableApi": true,
    "enableControls": true,
    "forceAutoplay": false,
    "forceLoop": false,
    "hideTitle": false,
    "language": "en",
    "link": "rgba(255, 0, 0, .95)",
    "linkActive": "string",
    "linkHover": "rgba(255, 255, 255, .75)",
    "shapeAspect": "string",
    "shapeBackgroundBottom": "string",
    "shapeBackgroundTop": "string",
    "shapeMargin": 0,
    "shapeRadius": 0,
    "text": "rgba(255, 255, 255, .95)",
    "trackBackground": "rgba(0, 0, 0, 0)",
    "trackPlayed": "rgba(255, 255, 255, .95)",
    "trackUnplayed": "rgba(255, 255, 255, .1)",
    "createdAt": "2020-01-31T10:17:47.000Z",
    "playerId": "pl45KFKdlddgk654dspkze",
    "updatedAt": "2020-01-31T10:18:47.000Z"
}

Request

Path Params

Body Params multipart/form-data

Responses

🟢201Created
application/json
Body

🟠400Bad Request
🟠404Not Found
Modified at 2023-08-15 05:52:15
Previous
Delete logo
Next
Upload with an upload token
Built with