Sha256: 3d2c07fdf1446335d0eb26ee13874fa7596cd241b1dd6da58b4ea0eac36a1a4c

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

my_video = Atome.new(
  video: { renderers: [:browser], id: :video1, type: :video, attach: [:view],
           path: './medias/videos/avengers.mp4', left: 333, top: 33, width: 777
  }
) do |params|
  puts "video callback here #{params}"
end

my_video.play(true)

my_video.touch(true) do
  my_video.pause(true)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.1.7 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/examples/pause.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/examples/pause.rb