Skip to main content
POST
/
streaming
/
players
Create player
curl --request POST \
  --url https://api.gcore.com/streaming/players \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "player": [
    {
      "id": 33,
      "name": "Player",
      "client_id": 100,
      "design": "",
      "custom_css": "",
      "js_url": "",
      "skin_js_url": "",
      "bg_color": "#3313df",
      "fg_color": "#FFFFFF",
      "text_color": "#FFFFFF",
      "hover_color": "#ef9047",
      "autoplay": true,
      "mute": false,
      "disable_skin": false,
      "save_options_to_cookies": false,
      "show_sharing": true,
      "speed_control": false
    }
  ]
}
'

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json
player
object

Set of properties for displaying videos. All parameters may be blank to inherit their values from default Streaming player.

Example:
[
{
"id": 33,
"name": "Player",
"client_id": 100,
"design": "",
"custom_css": "",
"js_url": "",
"skin_js_url": "",
"bg_color": "#3313df",
"fg_color": "#FFFFFF",
"text_color": "#FFFFFF",
"hover_color": "#ef9047",
"autoplay": true,
"mute": false,
"disable_skin": false,
"save_options_to_cookies": false,
"show_sharing": true,
"speed_control": false
}
]