Subtitles and Closed Captions
Enhance Your Products with Subtitles and Closed Captions
The "attachments" endpoint of our REST API offers a powerful feature to elevate your products by incorporating subtitles and closed captions. Subtitles and closed captions are essential for multilingual content presentation, enhancing accessibility, and improving the overall user experience. Whether you aim to expand your product's global reach, adhere to accessibility standards, or simply provide a richer audiovisual experience with subtitles and closed captions, our "attachments" endpoint simplifies this process.
Getting Started
In this comprehensive documentation, we will walk you through each step required to effectively utilize this endpoint. You will gain insights into sending HTTP requests to add subtitles and closed captions to your products, handling API responses, and adopting best practices to ensure a smooth integration.
Who Can Benefit
Whether you are an experienced developer seeking an internationalization and accessibility solution for your products or are new to the world of REST APIs, this documentation equips you with the essential information to maximize the potential of this endpoint.
Let's Get Started
Without further ado, let's delve into seamlessly integrating subtitles and closed captions into your products using our REST API.
This revised text maintains the structure and style of your original documentation while applying it to the context of explaining the "attachments" endpoint of your REST API. It introduces the topic, highlights its importance, and sets the stage for the reader to explore the documentation further.
You can manage your attachments of a video with the /videos/{videoId}/attachments endpoints:
- add an attachment to a video
- delete an attachment
- get list of attachments
- get content of the attachment
How to attach a file to a video
After the video object creation you can POST a subtitle or caption
curl -X GET '<<SBX_SERVER>>/videos/ZFJ3R0FYSlVTbDVYVG43aw%3D%3D/attachments/subtitle/fr-FR' \
-H 'x-api-key: <<SBX_DEMO_KEY>>'\
-H 'Content-Type: multipart/form-data'
-F 'file=@/path/of/file.srt'
This API return a 202 Code to confirm the upload
The locale is made up of a concatenation of language and culture
Code | Language (Region) |
---|---|
ar-DZ | Arabic (Algeria) |
ar-BH | Arabic (Bahrain) |
ar-EG | Arabic (Egypt) |
ar-IQ | Arabic (Iraq) |
ar-JO | Arabic (Jordan) |
ar-KW | Arabic (Kuwait) |
ar-LB | Arabic (Lebanon) |
ar-LY | Arabic (Libya) |
ar-MA | Arabic (Morocco) |
ar-OM | Arabic (Oman) |
ar-QA | Arabic (Qatar) |
ar-SA | Arabic (Saudi Arabia) |
ar-SY | Arabic (Syria) |
ar-TN | Arabic (Tunisia) |
ar-AE | Arabic (U.A.E.) |
ar-YE | Arabic (Yemen) |
zh-HK | Chinese (Hong Kong) |
zh-CN | Chinese (PRC) |
zh-SG | Chinese (Singapore) |
zh-TW | Chinese (Taiwan) |
nl-BE | Dutch (Belgium) |
nl-NL | Dutch (Standard) |
en-AU | English (Australia) |
en-BZ | English (Belize) |
en-CA | English (Canada) |
en-IE | English (Ireland) |
en-JM | English (Jamaica) |
en-NZ | English (New Zealand) |
en-ZA | English (South Africa) |
en-TT | English (Trinidad) |
en-GB | English (United Kingdom) |
en-US | English (United States) |
fr-BE | French (Belgium) |
fr-CA | French (Canada) |
fr-LU | French (Luxembourg) |
fr-FR | French (Standard) |
fr-CH | French (Switzerland) |
de-AT | German (Austria) |
de-LI | German (Liechtenstein) |
de-LU | German (Luxembourg) |
de-DE | German (Standard) |
de-CH | German (Switzerland) |
hu-HU | Hungarian |
is-IS | Icelandic |
id-ID | Indonesian |
ga-GA | Irish |
it-IT | Italian (Standard) |
it-CH | Italian (Switzerland) |
ja-JP | Japanese |
ko-KR | Korean |
lv-LV | Latvian |
lt-LT | Lithuanian |
mk-MK | Macedonian (FYROM) |
ml-ML | Malayalam |
ms-MS | Malaysian |
mt-MT | Maltese |
no-NO | Norwegian |
pl-PL | Polish |
pt-BR | Portuguese (Brazil) |
pt-PT | Portuguese (Portugal) |
pa-PA | Punjabi |
ro-RO | Romanian |
ro-MD | Romanian (Republic of Moldova) |
ru-RU | Russian |
ru-MD | Russian (Republic of Moldova) |
sr-SR | Serbian |
sk-SK | Slovak |
sl-SL | Slovenian |
es-AR | Spanish (Argentina) |
es-BO | Spanish (Bolivia) |
es-CL | Spanish (Chile) |
es-CO | Spanish (Colombia) |
es-CR | Spanish (Costa Rica) |
es-DO | Spanish (Dominican Republic) |
es-EC | Spanish (Ecuador) |
es-SV | Spanish (El Salvador) |
es-GT | Spanish (Guatemala) |
es-HN | Spanish (Honduras) |
es-MX | Spanish (Mexico) |
es-NI | Spanish (Nicaragua) |
es-PA | Spanish (Panama) |
es-PY | Spanish (Paraguay) |
es-PE | Spanish (Peru) |
es-PR | Spanish (Puerto Rico) |
es-ES | Spanish (Spain) |
es-UY | Spanish (Uruguay) |
es-VE | Spanish (Venezuela) |
sv-SV | Swedish |
sv-FI | Swedish (Finland) |
th-TH | Thai |
ts-TS | Tsonga |
tr-TR | Turkish |
uk-UA | Ukrainian |
ve-VE | Venda |
vi-VI | Vietnamese |
cy-CY | Welsh |
Updated about 1 year ago