vendor/assets/src/medias/rubies/examples/video.rb in atome-0.5.3.8.8 vs vendor/assets/src/medias/rubies/examples/video.rb in atome-0.5.4.0.9

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true my_video = Atome.new( - video: { renderers: [:browser], id: :video1, type: :video, parents: [:view], path: './medias/videos/superman.mp4', + video: { renderers: [:browser], id: :video1, type: :video, attach: [:view], path: './medias/videos/superman.mp4', left: 333, top: 112, width: 199, height: 99 } ) do |params| # puts "video callback time is #{params}, id is : #{id}" puts "video callback time is #{params}, id is : #{id}" @@ -20,10 +20,10 @@ puts "play callback time is : #{currentTime}" end end ############# my_video2 = Atome.new( - video: { renderers: [:browser], id: :video9, type: :video, parents: [:view], path: './medias/videos/madmax.mp4', + video: { renderers: [:browser], id: :video9, type: :video, attach: [:view], path: './medias/videos/madmax.mp4', left: 666, top: 333, width: 199, height: 99, }) do |params| puts "2- video callback time is #{params}, id is : #{id}" end my_video2.top(33) \ No newline at end of file