Class: Pageflow::VideoFileUrlTemplates

Inherits:
Object
  • Object
show all
Defined in:
app/models/pageflow/video_file_url_templates.rb

Instance Method Summary collapse

Instance Method Details

#callObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/pageflow/video_file_url_templates.rb', line 3

def call
  {
    original: url_template(:attachment, :original),

    high: url_template(:mp4_high),
    medium: url_template(:mp4_medium),
    fullhd: url_template(:mp4_fullhd),
    :'4k' => url_template(:mp4_4k),

    :'hls-playlist' => url_template(:hls_playlist),
    :'dash-playlist' => url_template(:dash_playlist),

    poster_medium: url_template(:poster, :medium),
    poster_large: url_template(:poster, :large),
    poster_ultra: url_template(:poster, :ultra),

    print: url_template(:poster, :print)
  }
end