Class: Vime::Core::Player

Inherits:
Vime::Component show all
Defined in:
app/components/vime/core/player.rb

Instance Method Summary collapse

Instance Method Details

#callObject



26
27
28
# File 'app/components/vime/core/player.rb', line 26

def call
   "vm-player", content, process_attrs(dom_attrs)
end

#dom_attrsObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'app/components/vime/core/player.rb', line 30

def dom_attrs
  super.merge({
    aspect_ratio: aspect_ratio,
    autopause: autopause,
    autoplay: autoplay,
    controls: controls,
    current_time: current_time,
    debug: debug,
    duration: duration,
    language: language,
    loop: loop,
    media_title: media_title,
    muted: muted,
    paused: paused,
    playback_quality: playback_quality,
    playback_rate: playback_rate,
    playsinline: playsinline,
    theme: theme,
    volume: volume,
  })
end