vendor/assets/src/medias/rubies/examples/video.rb in atome-0.5.4.0.9 vs vendor/assets/src/medias/rubies/examples/video.rb in atome-0.5.4.1.0
- old
+ new
@@ -14,11 +14,15 @@
my_video.height(444)
end
my_video.touch(true) do
- my_video.play(true) do |currentTime|
- puts "play callback time is : #{currentTime}"
+ if my_video.play == true
+ my_video.pause(true)
+ else
+ my_video.play(true) do |currentTime|
+ puts "play callback time is : #{currentTime}"
+ end
end
end
#############
my_video2 = Atome.new(
video: { renderers: [:browser], id: :video9, type: :video, attach: [:view], path: './medias/videos/madmax.mp4',
\ No newline at end of file