glimmer-cw-video 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12ba9b4c7e64db7a363ab1d05166ae8d9ff916726f44a691f44dd3107fb1c839
4
- data.tar.gz: ede349878b4b018aaef0c56718800884a79efe4ee7c4cecbf3045f10d6ee36f8
3
+ metadata.gz: 655e60f1fa57d7e979736526bef4fa82bc02dd8d4a27150cf95260a8ca3c3535
4
+ data.tar.gz: a5bde3ad86d5f038ef0e8ff0203cab3f9f0a2b8e5e0c1eb01dec919024635047
5
5
  SHA512:
6
- metadata.gz: 798c5b9f4089204b473902de74ad83d3434a8f6817dc5d36bcfab1364ae2b046b05668005cef6d02558f29f4b99e39a8722c91b3d7812f59df8d5bfb80bda35c
7
- data.tar.gz: 103dd4980a6779c63e545837752eb593e3c2507854413bcddcac32c8cb9000669afaed8e2a5ee369f141836d0afc4f092221482cb880cdba89727fe24be4c8b1
6
+ metadata.gz: 9c60316f38689fbdd8a1e23f1b00c91cafedf2960b01df96347c15d71f28fc383125e2c12b9c83e4ddfeeb27779ce058e00318b3943c69dff16ea1ac73c1ae63
7
+ data.tar.gz: a6b3c6e1f83335fe0404f36ce142634a00887d5b0908a8213f4f3fd4935ed0c7d074cb03841c691c1f06248f58e30fa8a7c63ae2c2db70d80b7be6498acef1b8
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.1.0
4
+
5
+ - Upgraded glimmer-dsl-swt, glimmer-dsl-xml, and glimmer-dsl-css
6
+ - Fix issue with failing to configure samples for glimmer-dsl-swt since it does not support sample configuration anymore because it became automatic
7
+
3
8
  ## 1.0.0
4
9
 
5
10
  - Upgraded to Glimmer DSL for SWT 4.17.0.0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Video 1.0.0
1
+ # Video 1.1.0
2
2
  ## [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 /> Glimmer Custom Widget](https://github.com/AndyObtiva/glimmer#custom-widget-gem)
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-cw-video.svg)](http://badge.fury.io/rb/glimmer-cw-video)
4
4
  [![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-cw-video.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-cw-video)
@@ -29,7 +29,7 @@ This has been tested and confirmed to be working on:
29
29
  Add the following to a Glimmer application `Gemfile`:
30
30
 
31
31
  ```ruby
32
- gem 'glimmer-cw-video', '1.0.0'
32
+ gem 'glimmer-cw-video', '1.1.0'
33
33
  ```
34
34
 
35
35
  Run:
@@ -112,8 +112,16 @@ glimmer sample:run[hello_video]
112
112
  Glimmer Code (from [samples/video/hello_video.rb](samples/video/hello_video.rb)):
113
113
 
114
114
  ```ruby
115
- # ...
115
+ require_relative '../../lib/glimmer-cw-video'
116
+
117
+ include Glimmer
118
+
119
+ video_file = File.expand_path('../videos/Clouds_passing_by_CCBY_NatureClip.mp4', __FILE__)
120
+
116
121
  shell {
122
+ text 'Hello, Video!'
123
+ minimum_size 384, 240
124
+
117
125
  video(file: video_file)
118
126
  }.open
119
127
  ```
@@ -133,9 +141,16 @@ glimmer sample:run[hello_looped_video_with_black_background]
133
141
  Glimmer Code (from [samples/video/hello_looped_video_with_black_background.rb](samples/video/hello_looped_video_with_black_background.rb)):
134
142
 
135
143
  ```ruby
136
- # ...
144
+ require_relative '../../lib/glimmer-cw-video'
145
+
146
+ include Glimmer
147
+
148
+ video_file = File.expand_path('../videos/Blackpool_Timelapse.mp4', __FILE__)
149
+
137
150
  shell {
151
+ text 'Hello, Looped Video with Black Background!'
138
152
  minimum_size 1024, 640
153
+
139
154
  video(file: video_file, looped: true, background: :black)
140
155
  }.open
141
156
  ```
@@ -155,7 +170,6 @@ glimmer sample:run[hello_video_observers]
155
170
  Glimmer Code (from [samples/video/hello_video_observers.rb](samples/video/hello_video_observers.rb)):
156
171
 
157
172
  ```ruby
158
- # ...
159
173
  require_relative '../../lib/glimmer-cw-video'
160
174
 
161
175
  include Glimmer
@@ -170,7 +184,9 @@ def display_video_status(video, status)
170
184
  end
171
185
 
172
186
  @shell = shell {
187
+ text 'Hello, Video Observers!'
173
188
  minimum_size 800, 500
189
+
174
190
  @video = video(file: video_file, background: :black) {
175
191
  on_swt_show { |event|
176
192
  # set focus as soon as the SWT widget is shown to grab keyboard events below
@@ -212,6 +228,18 @@ Glimmer App:
212
228
 
213
229
  ![glimmer cw video hello video observers](images/glimmer-cw-video-hello-video-observers.png)
214
230
 
231
+ Dialog for video playing event:
232
+
233
+ ![glimmer cw video hello video observers](images/glimmer-cw-video-hello-video-observers-playing-event.png)
234
+
235
+ Dialog for video paused event:
236
+
237
+ ![glimmer cw video hello video observers](images/glimmer-cw-video-hello-video-observers-paused-event.png)
238
+
239
+ Dialog for video ended event:
240
+
241
+ ![glimmer cw video hello video observers](images/glimmer-cw-video-hello-video-observers-ended-event.png)
242
+
215
243
  ## TODO
216
244
 
217
245
  [TODO.md](TODO.md)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -0,0 +1,72 @@
1
+ # Generated by juwelier
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: glimmer-cw-video 1.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "glimmer-cw-video".freeze
9
+ s.version = "1.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Andy Maleh".freeze]
14
+ s.date = "2020-10-22"
15
+ s.description = "Glimmer video widget with basic functionality like play, pause, loop, and reload. Support mp4, webm, and ogg. Works with both local files and web URLs.".freeze
16
+ s.email = "andy.am@gmail.com".freeze
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ "CHANGELOG.md",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "VERSION",
26
+ "glimmer-cw-video.gemspec",
27
+ "lib/glimmer-cw-video.rb",
28
+ "lib/views/glimmer/video.rb",
29
+ "samples/launch",
30
+ "samples/video/hello_looped_video_with_black_background.rb",
31
+ "samples/video/hello_video.rb",
32
+ "samples/video/hello_video_observers.rb",
33
+ "samples/video/videos/Ants.mp4",
34
+ "samples/video/videos/Blackpool_Timelapse.mp4",
35
+ "samples/video/videos/Clouds_passing_by_CCBY_NatureClip.mp4"
36
+ ]
37
+ s.homepage = "http://github.com/AndyObtiva/glimmer-cw-video".freeze
38
+ s.licenses = ["MIT".freeze]
39
+ s.rubygems_version = "3.1.4".freeze
40
+ s.summary = "Glimmer Custom Widget - Video".freeze
41
+
42
+ if s.respond_to? :specification_version then
43
+ s.specification_version = 4
44
+ end
45
+
46
+ if s.respond_to? :add_runtime_dependency then
47
+ s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.4.1", "< 5.0.0.0"])
48
+ s.add_runtime_dependency(%q<glimmer-dsl-xml>.freeze, [">= 1.1.0", "< 2.0.0"])
49
+ s.add_runtime_dependency(%q<glimmer-dsl-css>.freeze, [">= 1.1.0", "< 2.0.0"])
50
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
51
+ s.add_development_dependency(%q<glimmer-cs-gladiator>.freeze, [">= 0"])
52
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
53
+ s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
54
+ s.add_development_dependency(%q<coveralls>.freeze, ["= 0.8.23"])
55
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
56
+ s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
57
+ s.add_development_dependency(%q<glimmer-cw-video>.freeze, [">= 0"])
58
+ else
59
+ s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.4.1", "< 5.0.0.0"])
60
+ s.add_dependency(%q<glimmer-dsl-xml>.freeze, [">= 1.1.0", "< 2.0.0"])
61
+ s.add_dependency(%q<glimmer-dsl-css>.freeze, [">= 1.1.0", "< 2.0.0"])
62
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
63
+ s.add_dependency(%q<glimmer-cs-gladiator>.freeze, [">= 0"])
64
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
65
+ s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
66
+ s.add_dependency(%q<coveralls>.freeze, ["= 0.8.23"])
67
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
68
+ s.add_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
69
+ s.add_dependency(%q<glimmer-cw-video>.freeze, [">= 0"])
70
+ end
71
+ end
72
+
@@ -4,5 +4,3 @@ require 'glimmer-dsl-swt'
4
4
  require 'glimmer-dsl-xml'
5
5
  require 'glimmer-dsl-css'
6
6
  require 'views/glimmer/video'
7
-
8
- Glimmer::Config::SAMPLE_DIRECTORIES << File.expand_path('../../samples/video', __FILE__)
@@ -5,6 +5,8 @@ include Glimmer
5
5
  video_file = File.expand_path('../videos/Blackpool_Timelapse.mp4', __FILE__)
6
6
 
7
7
  shell {
8
+ text 'Hello, Looped Video with Black Background!'
8
9
  minimum_size 1024, 640
10
+
9
11
  video(file: video_file, looped: true, background: :black)
10
12
  }.open
@@ -5,5 +5,8 @@ include Glimmer
5
5
  video_file = File.expand_path('../videos/Clouds_passing_by_CCBY_NatureClip.mp4', __FILE__)
6
6
 
7
7
  shell {
8
+ text 'Hello, Video!'
9
+ minimum_size 384, 240
10
+
8
11
  video(file: video_file)
9
12
  }.open
@@ -12,7 +12,9 @@ def display_video_status(video, status)
12
12
  end
13
13
 
14
14
  @shell = shell {
15
+ text 'Hello, Video Observers!'
15
16
  minimum_size 800, 500
17
+
16
18
  @video = video(file: video_file, background: :black) {
17
19
  on_swt_show { |event|
18
20
  # set focus as soon as the SWT widget is shown to grab keyboard events below
metadata CHANGED
@@ -1,32 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cw-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-19 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 4.17.0.0
18
+ version: 4.17.4.1
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 5.0.0.0
22
22
  name: glimmer-dsl-swt
23
- type: :runtime
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.17.0.0
29
+ version: 4.17.4.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 5.0.0.0
@@ -35,18 +35,18 @@ dependencies:
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 1.0.0
38
+ version: 1.1.0
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 2.0.0
42
42
  name: glimmer-dsl-xml
43
- type: :runtime
44
43
  prerelease: false
44
+ type: :runtime
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.0.0
49
+ version: 1.1.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.0.0
@@ -55,21 +55,49 @@ dependencies:
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 1.0.0
58
+ version: 1.1.0
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.0.0
62
62
  name: glimmer-dsl-css
63
- type: :runtime
64
63
  prerelease: false
64
+ type: :runtime
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.0.0
69
+ version: 1.1.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 2.0.0
73
+ - !ruby/object:Gem::Dependency
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: 2.4.9
79
+ name: juwelier
80
+ prerelease: false
81
+ type: :development
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.4.9
87
+ - !ruby/object:Gem::Dependency
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ name: glimmer-cs-gladiator
94
+ prerelease: false
95
+ type: :development
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
73
101
  - !ruby/object:Gem::Dependency
74
102
  requirement: !ruby/object:Gem::Requirement
75
103
  requirements:
@@ -77,8 +105,8 @@ dependencies:
77
105
  - !ruby/object:Gem::Version
78
106
  version: 3.5.0
79
107
  name: rspec
80
- type: :development
81
108
  prerelease: false
109
+ type: :development
82
110
  version_requirements: !ruby/object:Gem::Requirement
83
111
  requirements:
84
112
  - - "~>"
@@ -91,8 +119,8 @@ dependencies:
91
119
  - !ruby/object:Gem::Version
92
120
  version: 2.3.9
93
121
  name: jeweler
94
- type: :development
95
122
  prerelease: false
123
+ type: :development
96
124
  version_requirements: !ruby/object:Gem::Requirement
97
125
  requirements:
98
126
  - - '='
@@ -105,8 +133,8 @@ dependencies:
105
133
  - !ruby/object:Gem::Version
106
134
  version: 0.8.23
107
135
  name: coveralls
108
- type: :development
109
136
  prerelease: false
137
+ type: :development
110
138
  version_requirements: !ruby/object:Gem::Requirement
111
139
  requirements:
112
140
  - - '='
@@ -119,8 +147,8 @@ dependencies:
119
147
  - !ruby/object:Gem::Version
120
148
  version: 0.16.1
121
149
  name: simplecov
122
- type: :development
123
150
  prerelease: false
151
+ type: :development
124
152
  version_requirements: !ruby/object:Gem::Requirement
125
153
  requirements:
126
154
  - - "~>"
@@ -133,8 +161,8 @@ dependencies:
133
161
  - !ruby/object:Gem::Version
134
162
  version: 0.7.0
135
163
  name: simplecov-lcov
136
- type: :development
137
164
  prerelease: false
165
+ type: :development
138
166
  version_requirements: !ruby/object:Gem::Requirement
139
167
  requirements:
140
168
  - - "~>"
@@ -147,8 +175,8 @@ dependencies:
147
175
  - !ruby/object:Gem::Version
148
176
  version: '0'
149
177
  name: glimmer-cw-video
150
- type: :development
151
178
  prerelease: false
179
+ type: :development
152
180
  version_requirements: !ruby/object:Gem::Requirement
153
181
  requirements:
154
182
  - - ">="
@@ -167,6 +195,7 @@ files:
167
195
  - LICENSE.txt
168
196
  - README.md
169
197
  - VERSION
198
+ - glimmer-cw-video.gemspec
170
199
  - lib/glimmer-cw-video.rb
171
200
  - lib/views/glimmer/video.rb
172
201
  - samples/launch
@@ -195,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
224
  - !ruby/object:Gem::Version
196
225
  version: '0'
197
226
  requirements: []
198
- rubygems_version: 3.0.6
227
+ rubygems_version: 3.1.4
199
228
  signing_key:
200
229
  specification_version: 4
201
230
  summary: Glimmer Custom Widget - Video