🚀 Version 2.0 is now live! See our changelog for details
🚀 Version 2.0 is now live! See our changelog for details
curl --request POST \
--url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/players \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Default Player2",
"language": "en",
"font_family": "Rubik",
"custom_html": "<!-- Custom analytics script -->",
"playback_speeds": [
0.5,
1,
1.5,
2
],
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true,
"vast_tag_url": "",
"dynamic_watermark": {
"enabled": true,
"font_size": 16,
"font_color": "#FFFFFF",
"background_color": "#000000",
"interval": 10
},
"analytics": {
"facebook_pixel_id": null,
"google_analytics_id": null
},
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 16,
"caption_font_size": 18,
"logo": null,
"logo_destination_url": null
},
"controls": {
"loop": true,
"backward": true,
"forward": true,
"big_play_button": true,
"captions": true,
"cast": false,
"current_time": true,
"duration": true,
"fullscreen": true,
"mute": true,
"picture_in_picture": true,
"play_pause": true,
"progress": true,
"settings": true,
"volume": true,
"controls_visible": true,
"preload": true,
"hide_branding": true,
"enable_download_button": false
}
}
'{
"data": {
"created_at": "2025-10-19T20:00:43.475427+06:00",
"updated_at": "2025-10-19T20:00:43.475427+06:00",
"created_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"updated_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"font_family": "Rubik",
"custom_html_footer": "<footer>Powered by MyApp</footer>",
"name": "Default Player",
"language": "en",
"custom_html_head": "<!-- Custom analytics script -->",
"playback_speeds": [
0.5,
1,
1.5,
2
],
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 16,
"caption_font_size": 18
},
"library_id": "b17ccdc7-eb3d-4d03-b0af-781d3c38c7e9",
"organization_id": "8babf060-e844-49e5-893c-35d0bf2edfc6",
"id": "1aaff3a6-5d28-4be5-a503-eff1f33e7010",
"controls": {
"backward": true,
"forward": true,
"big_play_button": true,
"captions": true,
"current_time": true,
"duration": true,
"fullscreen": true,
"mute": true,
"picture_in_picture": true,
"play_pause": true,
"progress": true,
"settings": true,
"volume": true
},
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true
},
"message": "Player Created Successfully",
"success": true
}Create a player for your video, and customise it.
curl --request POST \
--url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/players \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Default Player2",
"language": "en",
"font_family": "Rubik",
"custom_html": "<!-- Custom analytics script -->",
"playback_speeds": [
0.5,
1,
1.5,
2
],
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true,
"vast_tag_url": "",
"dynamic_watermark": {
"enabled": true,
"font_size": 16,
"font_color": "#FFFFFF",
"background_color": "#000000",
"interval": 10
},
"analytics": {
"facebook_pixel_id": null,
"google_analytics_id": null
},
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 16,
"caption_font_size": 18,
"logo": null,
"logo_destination_url": null
},
"controls": {
"loop": true,
"backward": true,
"forward": true,
"big_play_button": true,
"captions": true,
"cast": false,
"current_time": true,
"duration": true,
"fullscreen": true,
"mute": true,
"picture_in_picture": true,
"play_pause": true,
"progress": true,
"settings": true,
"volume": true,
"controls_visible": true,
"preload": true,
"hide_branding": true,
"enable_download_button": false
}
}
'{
"data": {
"created_at": "2025-10-19T20:00:43.475427+06:00",
"updated_at": "2025-10-19T20:00:43.475427+06:00",
"created_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"updated_by": "ce877d84-c433-46fc-803d-ede73a8375bc",
"font_family": "Rubik",
"custom_html_footer": "<footer>Powered by MyApp</footer>",
"name": "Default Player",
"language": "en",
"custom_html_head": "<!-- Custom analytics script -->",
"playback_speeds": [
0.5,
1,
1.5,
2
],
"appearance": {
"primary_color": "#1D9BF0",
"caption_font_color": "#FFFFFF",
"caption_background_color": "#000000",
"font_size": 16,
"caption_font_size": 18
},
"library_id": "b17ccdc7-eb3d-4d03-b0af-781d3c38c7e9",
"organization_id": "8babf060-e844-49e5-893c-35d0bf2edfc6",
"id": "1aaff3a6-5d28-4be5-a503-eff1f33e7010",
"controls": {
"backward": true,
"forward": true,
"big_play_button": true,
"captions": true,
"current_time": true,
"duration": true,
"fullscreen": true,
"mute": true,
"picture_in_picture": true,
"play_pause": true,
"progress": true,
"settings": true,
"volume": true
},
"is_beta_enabled": true,
"is_default": false,
"enable_resumable_position": true
},
"message": "Player Created Successfully",
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the library.
Name of the player configuration used to identify it within your account.
Default language code for interface text (e.g., en, es).
Font family used for player UI text.
Custom HTML or script snippets to embed in the player.
List of playback speed options available to users (e.g., 0.5x, 1x, 1.5x, 2x).
Enables experimental or beta player features for testing.
Marks this player configuration as the default for all videos.
Allows viewers to resume playback from their last watched position.
VAST ad tag URL for video ad integration. Leave empty if ads are not used.
Defines watermark display settings such as font, color, and movement interval.
Show child attributes
Enables dynamic watermark display during playback.
Font size of the watermark text.
Text color of the watermark in HEX format (e.g., #FFFFFF).
Background color behind the watermark text.
Interval in seconds for watermark position changes.
Controls the visual appearance of the player including colors, fonts, and logo.
Show child attributes
Primary color of the player interface (buttons, progress bar, etc.).
Text color for captions.
Background color for captions.
Default font size for UI text.
Font size for caption text.
URL of the logo displayed in the player (optional).
URL to open when the logo is clicked.
Defines player control visibility and functionality, including playback, captions, and casting options.
Show child attributes
Enables loop playback mode for videos.
Enables the backward seek button.
Enables the forward seek button.
Shows the central play button overlay before playback starts.
Enables the captions toggle button.
Enables Chromecast or casting options.
Displays the current playback time.
Displays the total video duration.
Enables fullscreen toggle option.
Enables the mute/unmute button.
Allows Picture-in-Picture playback mode.
Enables play/pause button control.
Displays the progress bar for playback tracking.
Enables settings menu for resolution, captions, and speed options.
Enables volume control slider.
Keeps playback controls visible at all times.
Preloads video data automatically when the page loads for faster playback start.
Hides player branding or watermark.
Displays a download button to allow users to download the video.
Enables AirPlay streaming for Apple devices.
Enables Chromecast support for casting playback to external devices.
Show child attributes
Show child attributes