Skip to main content
PUT
/
libraries
/
{libraryId}
/
players
/
{playerId}
Update Player
curl --request PUT \
  --url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/players/{playerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Default Player Changes",
  "language": "fr",
  "font_family": "Rubik",
  "custom_html_head": "<!-- Custom analytics script -->",
  "custom_html_footer": "<footer>Powered by MyApp</footer>",
  "playback_speeds": [
    0.75,
    0.5,
    1,
    1.5,
    2
  ],
  "is_beta_enabled": true,
  "is_default": false,
  "enable_resumable_position": true,
  "appearance": {
    "primary_color": "#1D9BF0",
    "caption_font_color": "#FFFFFF",
    "caption_background_color": "#000000",
    "font_size": 14,
    "caption_font_size": 18
  },
  "controls": {
    "backward": false,
    "forward": false,
    "airplay": false,
    "big_play_button": false,
    "captions": true,
    "chromecast": false,
    "current_time": true,
    "duration": true,
    "fullscreen": true,
    "mute": true,
    "picture_in_picture": true,
    "play_pause": true,
    "progress": true,
    "settings": true,
    "volume": true
  }
}
'
{
  "data": {
    "created_at": "2025-11-10T15:30:28.534221+06:00",
    "updated_at": "2025-11-10T15:40:27.592997825+06:00",
    "created_by": "9ba29736-cc5d-4e1c-85e8-f73849914ae0",
    "updated_by": "9ba29736-cc5d-4e1c-85e8-f73849914ae0",
    "font_family": "Rubik",
    "name": "Default Player Changes",
    "language": "fr",
    "custom_html": "",
    "playback_speeds": [
      0.75,
      0.5,
      1,
      1.5,
      2
    ],
    "appearance": {
      "primary_color": "#1D9BF0",
      "caption_font_color": "#FFFFFF",
      "caption_background_color": "#000000",
      "logo": "",
      "logo_destination_url": "",
      "font_size": 14,
      "caption_font_size": 18
    },
    "controls": {
      "backward": false,
      "forward": false,
      "cast": false,
      "big_play_button": false,
      "captions": true,
      "chapters": false,
      "current_time": true,
      "duration": true,
      "fullscreen": true,
      "mute": true,
      "picture_in_picture": true,
      "play_pause": true,
      "progress": true,
      "settings": true,
      "volume": true,
      "hide_branding": false,
      "preload": false,
      "controls_visible": false,
      "enable_download_button": false,
      "loop": false
    },
    "organization_id": "a7f590b4-3fd7-42a4-82bb-a7cfa6aa9d04",
    "id": "4dbe731e-b3b4-4e6d-b291-3339fa28cc91",
    "library_id": "314221a1-3cbf-4d3c-846e-f6c22bc43064",
    "is_beta_enabled": true,
    "is_default": false,
    "enable_resumable_position": true
  },
  "message": "Player Updated Successfully",
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

libraryId
string
required

Unique identifier of the library.

playerId
string
required

Unique identifier of the targeted player resource.

Body

application/json
name
string

Name of the player configuration used to identify it within your account.

language
string

Default language code for captions and UI elements (e.g., 'en', 'es').

font_family
string

Font family used for captions and player interface text.

custom_html_head
string

Custom HTML or script snippets to include in the section of the player (e.g., analytics tags).

Custom HTML or script snippets to include before the closing tag.

playback_speeds
(number | integer)[]

List of playback speed options available to users (e.g., 0.5x, 1x, 2x).

is_beta_enabled
boolean

Enables beta or experimental player features for testing.

is_default
boolean

Marks this player as the default configuration for all videos.

enable_resumable_position
boolean

Allows viewers to continue watching from their last playback position.

appearance
object

Defines appearance settings including colors and text sizes for the player.

controls
object

Defines the visibility and functionality of player control buttons and features.

Response

data
object
required
message
string
required
success
boolean
required