soby 0.1.1.0 → 0.1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5bcc2a4a2799b81ef7227a158b722dbc20febaf
4
- data.tar.gz: 7b5fe5ad87458b91459c67dc6e36b20a52e9de2b
3
+ metadata.gz: 75e7385d5735df3f2e46baf9ff541a3d9a4680dd
4
+ data.tar.gz: 0be5f95f21b0380aeb6beb56267bcd1c15982dd0
5
5
  SHA512:
6
- metadata.gz: d5551b5ee1baff1f912219ac887621e106a0deca7368d9c39ae0c777cb14aef23a9ffe1c28c6d80bb1f0c70a40291676438adbb47d4dd5b57bc34ead4a8de159
7
- data.tar.gz: dcd7d11901b7679c311aa0ec6cd707143b7c5a3b9566229cc1c929d4feaa29459f0a10c3debf93ef8a606d9882c076f211b1e8e20a0f56a5e1bb2687a3c4c0a0
6
+ metadata.gz: b895c8bd25a2f4392b126af7dead26d434963665f50765698d0399edbcd054dd2dc5fe2d51f11a852c2cc44fec95ed175f3d1b71df2997088071b3834091b4c0
7
+ data.tar.gz: faa7999280e3da2eafaadc0abafad8920384c5101808b62454f1d8d9f6694d1bcfce8cf04d951505c0aca5846b27e35fa5310f50248fff359eb26c7b3f89e8fe
data/lib/soby/loader.rb CHANGED
@@ -281,8 +281,6 @@ class PresentationLoader
281
281
  class MyVideo
282
282
 
283
283
  include_package 'processing.video'
284
- include_package 'processing.video.Movie'
285
- include_package 'org.gestreamer.elements'
286
284
 
287
285
  attr_reader :matrix, :width, :height, :slide
288
286
  attr_accessor :video
@@ -297,17 +295,10 @@ class PresentationLoader
297
295
 
298
296
  def play
299
297
  if @video == nil
300
-
301
298
  absolute_path = $app.sketchPath "" << @path
302
-
303
299
  puts ("loading the video : " + absolute_path)
304
300
  vid = Movie.new($app, absolute_path)
305
-
306
301
  vid.play
307
- # vid = Movie.new($app, @path)
308
- puts "Loaded "
309
- puts vid, vid.width, vid.height
310
-
311
302
  @video = vid
312
303
  true
313
304
  else
@@ -62,11 +62,10 @@ class Presentation
62
62
  # hopefully be freed
63
63
  @playing_videos << my_video if my_video.play
64
64
 
65
- ## force reading here..
66
- my_video.video.read if my_video.video.available?
67
- # my_video.video.read
68
- @graphics.image(my_video.video, 0, 0, my_video.width, my_video.height)
65
+ ## previous version
66
+ ## my_video.video.read if my_video.video.available?
69
67
 
68
+ @graphics.image(my_video.video, 0, 0, my_video.width, my_video.height)
70
69
 
71
70
  @graphics.pop_matrix
72
71
  end # videos.each
data/lib/soby.rb CHANGED
@@ -9,8 +9,6 @@ require 'java'
9
9
  require 'jruby/core_ext'
10
10
  # Processing::App::SKETCH_PATH = Dir.pwd
11
11
 
12
- # For the other files, we need to load the libraries
13
- Processing::App::load_library 'video', 'toxiclibscore', 'SVGExtended'
14
12
 
15
13
  require_relative 'soby/transforms'
16
14
  require_relative 'soby/loader'
@@ -22,10 +20,11 @@ require_relative 'soby/launcher'
22
20
 
23
21
  class SobyPlayer < Processing::App
24
22
 
25
- include_package 'processing.core'
26
- include_package 'toxi.geom'
23
+
24
+ load_library 'video','video_event', 'SVGExtended'
27
25
 
28
- import 'toxi.geom.Matrix4x4'
26
+
27
+ include_package 'processing.core'
29
28
 
30
29
  attr_accessor :prez, :prev_cam, :next_cam, :slides
31
30
  attr_reader :is_moving, :current_slide_no
@@ -44,6 +43,9 @@ class SobyPlayer < Processing::App
44
43
  super()
45
44
  end
46
45
 
46
+ def movieEvent(m)
47
+ m.read
48
+ end
47
49
 
48
50
  # no Border
49
51
  def init
@@ -117,7 +119,6 @@ class SobyPlayer < Processing::App
117
119
  imageMode(CORNER)
118
120
 
119
121
  if(running?)
120
-
121
122
  push_matrix
122
123
 
123
124
  update_cam
@@ -472,8 +473,8 @@ class SobyPlayer < Processing::App
472
473
 
473
474
  end
474
475
 
475
- ## Allow for java introspection
476
- SobyPlayer.become_java!
476
+ # ## Allow for java introspection
477
+ # SobyPlayer.become_java!
477
478
 
478
479
  ## TODO: move this somewhere
479
480
  class AppFilter < Java::javax::swing::filechooser::FileFilter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.0
4
+ version: 0.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Laviole
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement