Opencast

Caption Service REST Documentation

/caption
This service enables conversion from one caption format to another.

General Notes

Table of Contents

Write methods

Method / Path: POST /convert
Description: Convert captions from one format to another.
Path params: NONE
Required (form) params: captions: Captions to be converted.
Optional (form) params: input(Default value=dfxp): Caption input format (for example: dfxp, subrip,...).
output(Default value=subrip): Caption output format (for example: dfxp, subrip,...).
language(Default value=en): Caption language (for those formats that store such information).
Response formats: text/xml
Status codes: 200: OK, OK, Conversion successfully completed.
Notes:
  • Return value description: The converted captions file
Testing:
Sample: /convert
Testing form (click to reveal)
Method / Path: POST /languages
Description: Get information about languages in caption catalog (if such information is available).
Path params: NONE
Required (form) params: captions: Captions to be examined.
Optional (form) params: input(Default value=dfxp): Caption input format (for example: dfxp, subrip,...).
Response formats: text/xml
Status codes: 200: OK, OK, information was extracted and retrieved
Notes:
  • Return value description: Returned information about languages present in captions.
Testing:
Sample: /languages
Testing form (click to reveal)