跳到主要内容

Update subtitles of VOD

PUT 

/bv/cms/v1/vods/:id/subtitles

Modifies the subtitles of a VOD resource with the specified subtitle file.


Required field(s):

  • id

Request

Path Parameters

    id stringrequired

    Required. The unique id of the VOD resource.

Header Parameters

    x-bv-org-id stringrequired

    To invoke this API using api_token, you need to set the x-bv-org-id header to specify the organization for which you want to perform the action.

Body

required
    subtitles object[]

    Optional. The subtitles that will be added to the VOD resource.

  • Array [
  • id stringrequired

    The unique id of the library subtitle file.

    name string

    The name of the subtitle file.

    code string

    The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    display stringrequired

    The display name of the subtitle file.

    translate_settings object[]

    The translate settings of the subtitle. It's only supported in AddVODSubtitles, TranslateVODSubtitle and CreateVOD API.

  • Array [
  • source_lang_code stringrequired

    The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    target_lang_code stringrequired

    The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    display stringrequired

    The display name of the translated subtitle file.

  • ]
  • ]
  • stt_subtitles object[]

    Optional. The subtitle will auto-generated and added to VOD resource.

  • Array [
  • track_no string

    The number of audio track.

    lang_code string

    The language code of the subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    display stringrequired

    The display name of the subtitle file.

    translate_settings object[]

    The translate settings of the subtitle. It's only supported in AddVODSubtitles, TranslateVODSubtitle and CreateVOD API.

  • Array [
  • source_lang_code stringrequired

    The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    target_lang_code stringrequired

    The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).

    display stringrequired

    The display name of the translated subtitle file.

  • ]
  • ]

Responses

A successful response.

Schema

    object

Loading...