soby 0.1.1.0 → 0.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soby/loader.rb +0 -9
- data/lib/soby/presentation.rb +3 -4
- data/lib/soby.rb +9 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e7385d5735df3f2e46baf9ff541a3d9a4680dd
|
4
|
+
data.tar.gz: 0be5f95f21b0380aeb6beb56267bcd1c15982dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/soby/presentation.rb
CHANGED
@@ -62,11 +62,10 @@ class Presentation
|
|
62
62
|
# hopefully be freed
|
63
63
|
@playing_videos << my_video if my_video.play
|
64
64
|
|
65
|
-
##
|
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
|
-
|
26
|
-
|
23
|
+
|
24
|
+
load_library 'video','video_event', 'SVGExtended'
|
27
25
|
|
28
|
-
|
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.
|
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-
|
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
|