glimmer-cw-video 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12ba9b4c7e64db7a363ab1d05166ae8d9ff916726f44a691f44dd3107fb1c839
4
- data.tar.gz: ede349878b4b018aaef0c56718800884a79efe4ee7c4cecbf3045f10d6ee36f8
3
+ metadata.gz: eaece50fa013536bcaa2cc9695323e10dc6c9a9ad09ef286f8ead88c8010d4af
4
+ data.tar.gz: 8e3ddb6f497ba0c2f9efd7c0aadc66299433370f40f083d4ae9ab79fe90fb68f
5
5
  SHA512:
6
- metadata.gz: 798c5b9f4089204b473902de74ad83d3434a8f6817dc5d36bcfab1364ae2b046b05668005cef6d02558f29f4b99e39a8722c91b3d7812f59df8d5bfb80bda35c
7
- data.tar.gz: 103dd4980a6779c63e545837752eb593e3c2507854413bcddcac32c8cb9000669afaed8e2a5ee369f141836d0afc4f092221482cb880cdba89727fe24be4c8b1
6
+ metadata.gz: 42a4360aa93c99c9d8147f33b52ce6758abd2e5a1bf2313d927f00652ed5d7bba311f491094186625ea28e5f2c64f014253f99889aa7dd8f703da0d435ac294b
7
+ data.tar.gz: 0b142707223a8a6cab4ceb012dc2b2a7cad980da868070f0dc6f44cbbb71f8fb2be0ed21bb6ddceab2739d3bcaa6cf1b77213452f70aa40bd465f32c3fba8894
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.1.1
4
+
5
+ - Relaxed indirect dependency on glimmer through glimmer-dsl-xml by upgrading to a newer version (1.3.2)
6
+ - Relaxed indirect dependency on glimmer through glimmer-dsl-css by upgrading to a newer version (1.2.2)
7
+ - Fix issue with `Glimmer::Config.xml_attribute_underscore` in glimmer-dsl-xml by upgrading to a newer version (1.3.2)
8
+
9
+ ## 1.1.0
10
+
11
+ - Upgraded glimmer-dsl-swt, glimmer-dsl-xml, and glimmer-dsl-css
12
+ - Fix issue with failing to configure samples for glimmer-dsl-swt since it does not support sample configuration anymore because it became automatic
13
+
3
14
  ## 1.0.0
4
15
 
5
16
  - Upgraded to Glimmer DSL for SWT 4.17.0.0
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 Andy Maleh
1
+ Copyright (c) 2020-2023 Andy Maleh
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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:
@@ -49,7 +49,7 @@ require 'glimmer-cw-video'
49
49
  # ... more require statements follow
50
50
  ```
51
51
 
52
- ## API Options
52
+ ## API Options
53
53
 
54
54
  Here are the options to pass in as hash arguments to the `video` widget keyword (see in [Samples](#samples)):
55
55
  - `autoplay` (true [default] or false): plays video automatically as soon as loaded
@@ -101,7 +101,7 @@ Run this command to list available Video samples:
101
101
  glimmer sample:list
102
102
  ```
103
103
 
104
- ### Hello, Video!
104
+ ### Hello, Video!
105
105
 
106
106
  Run:
107
107
 
@@ -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
@@ -190,7 +206,7 @@ end
190
206
  when swt(:arrow_down)
191
207
  @video.volume_down
192
208
  end
193
- }
209
+ }
194
210
 
195
211
  on_playing {
196
212
  display_video_status(@video, 'Playing')
@@ -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)
@@ -234,7 +262,7 @@ Glimmer App:
234
262
 
235
263
  [MIT](LICENSE.txt)
236
264
 
237
- Copyright (c) 2020 - Andy Maleh.
265
+ Copyright (c) 2020-2023 - Andy Maleh.
238
266
 
239
267
  --
240
268
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.1
@@ -0,0 +1,68 @@
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.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "glimmer-cw-video".freeze
9
+ s.version = "1.1.1"
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 = "2023-06-15"
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.2.33".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.3.2", "< 2.0.0"])
49
+ s.add_runtime_dependency(%q<glimmer-dsl-css>.freeze, [">= 1.2.2", "< 2.0.0"])
50
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
51
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
52
+ s.add_development_dependency(%q<coveralls>.freeze, ["= 0.8.23"])
53
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
54
+ s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
55
+ s.add_development_dependency(%q<glimmer-cw-video>.freeze, [">= 0"])
56
+ else
57
+ s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.4.1", "< 5.0.0.0"])
58
+ s.add_dependency(%q<glimmer-dsl-xml>.freeze, [">= 1.3.2", "< 2.0.0"])
59
+ s.add_dependency(%q<glimmer-dsl-css>.freeze, [">= 1.2.2", "< 2.0.0"])
60
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
61
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
62
+ s.add_dependency(%q<coveralls>.freeze, ["= 0.8.23"])
63
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
64
+ s.add_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
65
+ s.add_dependency(%q<glimmer-cw-video>.freeze, [">= 0"])
66
+ end
67
+ end
68
+
@@ -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__)
@@ -71,7 +71,7 @@ module Glimmer
71
71
  }
72
72
  }
73
73
 
74
- def source
74
+ def source
75
75
  file_source = file
76
76
  if file_source
77
77
  if file_source.start_with?('uri:classloader')
@@ -86,7 +86,7 @@ module Glimmer
86
86
  File.binwrite(tmp_file, file_content)
87
87
  "file://#{tmp_file}"
88
88
  else
89
- file_source = File.expand_path(file_source)
89
+ file_source = File.expand_path(file_source)
90
90
  "file://#{file_source}"
91
91
  end
92
92
  else
@@ -323,7 +323,7 @@ module Glimmer
323
323
 
324
324
  def browser_body_background
325
325
  color = background
326
- if color.is_a?(Symbol) || color.is_a?(String)
326
+ if color.is_a?(Symbol) || color.is_a?(String)
327
327
  color = color(color)
328
328
  end
329
329
  if color.respond_to?(:swt_color)
@@ -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,21 +1,21 @@
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.1
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: 2023-06-15 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
@@ -26,7 +26,7 @@ dependencies:
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,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 1.0.0
38
+ version: 1.3.2
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 2.0.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.0.0
49
+ version: 1.3.2
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.0.0
@@ -55,7 +55,7 @@ dependencies:
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 1.0.0
58
+ version: 1.2.2
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.0.0
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.0.0
69
+ version: 1.2.2
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 2.0.0
@@ -75,29 +75,29 @@ dependencies:
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: 3.5.0
79
- name: rspec
78
+ version: 2.4.9
79
+ name: juwelier
80
80
  type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - "~>"
85
85
  - !ruby/object:Gem::Version
86
- version: 3.5.0
86
+ version: 2.4.9
87
87
  - !ruby/object:Gem::Dependency
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - '='
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: 2.3.9
93
- name: jeweler
92
+ version: 3.5.0
93
+ name: rspec
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '='
98
+ - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: 2.3.9
100
+ version: 3.5.0
101
101
  - !ruby/object:Gem::Dependency
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
@@ -167,6 +167,7 @@ files:
167
167
  - LICENSE.txt
168
168
  - README.md
169
169
  - VERSION
170
+ - glimmer-cw-video.gemspec
170
171
  - lib/glimmer-cw-video.rb
171
172
  - lib/views/glimmer/video.rb
172
173
  - samples/launch
@@ -195,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
196
  - !ruby/object:Gem::Version
196
197
  version: '0'
197
198
  requirements: []
198
- rubygems_version: 3.0.6
199
+ rubygems_version: 3.2.33
199
200
  signing_key:
200
201
  specification_version: 4
201
202
  summary: Glimmer Custom Widget - Video