Method: Abrizer::Canvas#captions_item

Defined in:
lib/abrizer/canvas.rb

#captions_item(json) ⇒ Object



151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/abrizer/canvas.rb', line 151

def captions_item(json)
  # TODO: update captions for multiple captions
  if File.exist? captions_filepath
    json.child! do
      json.id vtt_id
      json.type 'Text'
      json.format 'text/vtt'
      json.kind 'captions'
      json.label 'English captions'
      json.language 'en'
      json._comments "How make explicit how whether to use these as captions or subtitles, descriptions, or chapters?"
    end
  end
end