Sha256: 5d870b234245613f6b88f7ac0feea4f9415293c280a1add997245683626e120c

Contents?: true

Size: 489 Bytes

Versions: 10

Compression:

Stored size: 489 Bytes

Contents

json.(audio_file, :id, :state, :rights, :usage_id)
json.encoding_progress(audio_file.encoding_progress.to_i)
json.file_name audio_file.attachment.original_filename

json.format(file_format(audio_file))
json.duration(file_duration(audio_file))

if audio_file.attachment_on_s3.present?
  json.url(audio_file.attachment_on_s3.url)
end

if audio_file.state == 'encoded'
  json.sources(audio_file_sources(audio_file)) do |source|
    json.src source[:src]
    json.type source[:type]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pageflow-0.4.0 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.3.0 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.2.1 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.2.0 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.1.0 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.0.5 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.0.4 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.0.3 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.0.2 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder
pageflow-0.0.1 app/views/pageflow/editor/audio_files/_audio_file.json.jbuilder