next to Show Captions .
Zoom expects closed caption data to arrive in a continuous sequence of POSTs. Every meeting and breakout room session has a special URL (breakout room sessions have an additional subconfid parameter). The URL of the POST will specify the destination of the data (the meeting that the closed captions are associated with).
\r\n\r\nThe following parameter needs to be added to the URL of every POST:
\r\nName | Description | Example fragment |
seq | \r\n Must be contained in all POSTs. Counter for all closed caption data posts. Counter must increase by one between posts of new caption data (it must not be increased for retries). \r\nThe seq number of the last successful send can be obtained through the API: /closedcaption/seq [GET] \r\n | &seq |
lang | \r\n The language code and ISO country code separated by a hyphen. \r\nExamples: \r\n
| &lang=en-US |
The content type (mimetype) for all POSTs must be in plain text format with UTF-8 encoding.
\r\nAll HTTP POSTs sent to the closed caption ingestion point must contain only closed caption data within the content body. Data must not be form encoded.
\r\nThe body of the POST will contain the text for the closed caption data. A line break can be using \\n (0x0D) in the closed caption text.
\r\nExamples:
\r\nHTTP POSTs may return the following response codes:
\r\nResponse code | Description |
405 | \r\n Method not allowed. Not a POST. \r\n |
400 | \r\n Bad request. The meeting has not started. \r\n |
403 | \r\n Unauthorized. Could be due to missing &seq query parameter or missing &id, &signature, &expire or &ns. \r\n |
Zoom recommends that you retry all codes. This includes the response codes 405, 400, 403 shown above, as well as additional codes such as 408 Request Timeout, 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable, and 504 Gateway Timeout.
\r\nAll HTTP POST requests should be performed with a timeout. If a request times out, it should be retried.
\r\nWhen performing retry requests, use randomized binary exponential backoff:
\r\nWait a random period between [0..100] milliseconds and retry; if that fails, wait a random period between [0..200] milliseconds and retry; if that fails, wait a random period between [0..400] milliseconds and retry, and so on. You should retry until it makes more sense to move on to the next closed caption packet (after approximately 5 seconds).
\r\nA timestamp value is present in the POST return body and corresponds to the time the POST was processed. It may be used to correct the local clock on a client driving the server. Zoom strongly recommends using this value because local clocks are often poorly synchronized.
\r\nExample returned timestamp: 2012-12-24T00:00:06.873
\r\nPOST /closedcaption?id=200610693&ns=GZHkEA==&expire=86400&sparams=id%2Cns%2Cexpire&signature=nYtXJqRKCW&seq=41&lang=en-US \r\nHost: wmcapi.zoom.us:80\r\nAccept: */*\r\nContent-Type: text/plain\r\nContent-Length: 11\r\nI'M SENDING\r\n\r\n
POST /closedcaption?id=200610693&ns=GZHkEA==&expire=86400&sparams=id%2Cns%2Cexpire&signature=nYtXJqRKCW&seq=42&lang=en-US \r\nHost: wmcapi.zoom.us:80\r\nAccept: */*\r\nContent-Type: text/plain\r\nContent-Length: 18\r\nSEVERAL CAPTIONS.\\n\r\n