Sha256: 79d75be1da5d5fe6b58eeee41fb0ff16cac9065da80d42147fb3155c345d95a2

Contents?: true

Size: 552 Bytes

Versions: 7

Compression:

Stored size: 552 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: 33, top: 33, width: 777
  }
)

my_video.touch(true) do
  my_video.play(3)
  puts "play : #{my_video.play}, pause : #{my_video.pause}"
end

stoper = lambda do
  my_video.pause(true)
end

jumper=lambda do
  my_video.play(12)
end

my_video.markers({ markers: { begin: 6, code: jumper } })

my_video.add({ markers: { my_stop: { begin: 16, code: stoper } }, left: 33 })

Version data entries

7 entries across 7 versions & 1 rubygems

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