Sha256: 0f1afeba3c4a414c97a4f5f1fb1050b7eb0762bf4e1b15f7d9f8a4bac1d3f507

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

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

# video example
grab(:video1).time(5)
wait 4 do
  grab(:video1).pause(5)
end
grab(:video1).on(:pause) do |_event|
  puts :stopped
end

grab(:video1).on(:click) do |_event|
  puts :touched
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
atome-0.5.3.8.8 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.8.1 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.8.0 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.7.8 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.7.3 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.7.2 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.4 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.3.2 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.2.8 vendor/assets/src/medias/rubies/examples/on.rb
atome-0.5.2.7 vendor/assets/build/medias/rubies/examples/on.rb
atome-0.5.2.5 vendor/assets/build/medias/rubies/examples/on.rb
atome-0.5.1.9 vendor/assets/build/medias/rubies/examples/on.rb