Ziggeo 1.17 → 1.19
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 +4 -4
- data/README.md +129 -1
- data/lib/Ziggeo.rb +18 -0
- data/lib/classes/ZiggeoEffectProfileProcess.rb +27 -0
- data/lib/classes/ZiggeoEffectProfiles.rb +23 -0
- data/lib/classes/ZiggeoVideos.rb +4 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d58393670371ac5cf501771bdf3950984c518be5
|
|
4
|
+
data.tar.gz: 13d6d6a31ef73b318d5302ce3880415c789dc518
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5797701734513c50a5daedd915ffd9754a4d75637d6f85a61a171c29e0bafeae66e37eb012ed93986b1169b6331acae554a90aef005d0e90f3627cad54502f58
|
|
7
|
+
data.tar.gz: b63177caee0714daef4e4edb0331348b6937352569adb1fce0fe6c930016da138690dc64274d9b11888a55803a683f985e0c4f43f751fe893891db9d1a096e39
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Ziggeo Ruby Server SDK 1.
|
|
1
|
+
# Ziggeo Ruby Server SDK 1.19
|
|
2
2
|
|
|
3
3
|
Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only
|
|
4
4
|
two lines of code in your site, service or app. This is the Ruby Server SDK repository.
|
|
@@ -118,6 +118,18 @@ Arguments
|
|
|
118
118
|
- pushservicetoken: *Push Services's token (from the Push Services configured for the app)*
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
#### Apply Effect
|
|
122
|
+
|
|
123
|
+
Apply an effect profile to a video.
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
ziggeo.videos().apply_effect(token_or_key, arguments = nil)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Arguments
|
|
130
|
+
- effectprofiletoken: *Effect Profile token (from the Effect Profiles configured for the app)*
|
|
131
|
+
|
|
132
|
+
|
|
121
133
|
#### Update
|
|
122
134
|
|
|
123
135
|
Update single video by token or key.
|
|
@@ -336,6 +348,122 @@ Arguments
|
|
|
336
348
|
- grants: *Permissions this tokens grants*
|
|
337
349
|
|
|
338
350
|
|
|
351
|
+
### EffectProfiles
|
|
352
|
+
|
|
353
|
+
The effect profiles resource allows you to access and create effect profiles for your app. Each effect profile may contain one process or more.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
#### Create
|
|
357
|
+
|
|
358
|
+
Create a new effect profile.
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
ziggeo.effectProfiles().create(arguments = nil)
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Arguments
|
|
365
|
+
- key: *Effect profile key.*
|
|
366
|
+
- title: *Effect profile title.*
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
#### Index
|
|
370
|
+
|
|
371
|
+
Get list of effect profiles.
|
|
372
|
+
|
|
373
|
+
```ruby
|
|
374
|
+
ziggeo.effectProfiles().index(arguments = nil)
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Arguments
|
|
378
|
+
- limit: *Limit the number of returned effect profiles. Can be set up to 100.*
|
|
379
|
+
- skip: *Skip the first [n] entries.*
|
|
380
|
+
- reverse: *Reverse the order in which effect profiles are returned.*
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
#### Get
|
|
384
|
+
|
|
385
|
+
Get a single effect profile
|
|
386
|
+
|
|
387
|
+
```ruby
|
|
388
|
+
ziggeo.effectProfiles().get(token_or_key)
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
#### Delete
|
|
394
|
+
|
|
395
|
+
Delete the effect profile
|
|
396
|
+
|
|
397
|
+
```ruby
|
|
398
|
+
ziggeo.effectProfiles().delete(token_or_key)
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### EffectProfileProcess
|
|
404
|
+
|
|
405
|
+
The process resource allows you to directly access all process associated with a single effect profile.
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
#### Index
|
|
409
|
+
|
|
410
|
+
Return all processes associated with a effect profile
|
|
411
|
+
|
|
412
|
+
```ruby
|
|
413
|
+
ziggeo.effectProfileProcess().index(effect_token_or_key, arguments = nil)
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
Arguments
|
|
417
|
+
- states: *Filter streams by state*
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
#### Get
|
|
421
|
+
|
|
422
|
+
Get a single process
|
|
423
|
+
|
|
424
|
+
```ruby
|
|
425
|
+
ziggeo.effectProfileProcess().get(effect_token_or_key, token_or_key)
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
#### Delete
|
|
431
|
+
|
|
432
|
+
Delete the process
|
|
433
|
+
|
|
434
|
+
```ruby
|
|
435
|
+
ziggeo.effectProfileProcess().delete(effect_token_or_key, token_or_key)
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
#### Create Filter Process
|
|
441
|
+
|
|
442
|
+
Create a new filter effect process
|
|
443
|
+
|
|
444
|
+
```ruby
|
|
445
|
+
ziggeo.effectProfileProcess().create_filter_process(effect_token_or_key, arguments = nil)
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Arguments
|
|
449
|
+
- effect: *Effect to be applied in the process*
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
#### Create Watermark Process
|
|
453
|
+
|
|
454
|
+
Attaches an image to a new stream
|
|
455
|
+
|
|
456
|
+
```ruby
|
|
457
|
+
ziggeo.effectProfileProcess().create_watermark_process(effect_token_or_key, arguments = nil, file = nil)
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
Arguments
|
|
461
|
+
- file: *Image file to be attached*
|
|
462
|
+
- vertical: *Specify the vertical position of your watermark (a value between 0.0 and 1.0)*
|
|
463
|
+
- horizontal: *Specify the horizontal position of your watermark (a value between 0.0 and 1.0)*
|
|
464
|
+
- scale: *Specify the image scale of your watermark (a value between 0.0 and 1.0)*
|
|
465
|
+
|
|
466
|
+
|
|
339
467
|
|
|
340
468
|
|
|
341
469
|
|
data/lib/Ziggeo.rb
CHANGED
|
@@ -7,6 +7,8 @@ require_relative "classes/ZiggeoConfig"
|
|
|
7
7
|
require_relative "classes/ZiggeoConnect"
|
|
8
8
|
require_relative "classes/ZiggeoVideos"
|
|
9
9
|
require_relative "classes/ZiggeoStreams"
|
|
10
|
+
require_relative "classes/ZiggeoEffectProfiles"
|
|
11
|
+
require_relative "classes/ZiggeoEffectProfileProcess"
|
|
10
12
|
require_relative "classes/ZiggeoAuthtokens"
|
|
11
13
|
require_relative "classes/ZiggeoAuth"
|
|
12
14
|
|
|
@@ -21,6 +23,8 @@ class Ziggeo
|
|
|
21
23
|
@connect = ZiggeoConnect.new(self)
|
|
22
24
|
@videos = nil
|
|
23
25
|
@streams = nil
|
|
26
|
+
@effectProfiles = nil
|
|
27
|
+
@effectProfileProcess = nil
|
|
24
28
|
@authtokens = nil
|
|
25
29
|
@auth = nil
|
|
26
30
|
if (ENV["ZIGGEO_URL"] != nil)
|
|
@@ -47,6 +51,20 @@ class Ziggeo
|
|
|
47
51
|
return @streams
|
|
48
52
|
end
|
|
49
53
|
|
|
54
|
+
def effectProfiles()
|
|
55
|
+
if (@effectProfiles == nil)
|
|
56
|
+
@effectProfiles = ZiggeoEffectProfiles.new(self)
|
|
57
|
+
end
|
|
58
|
+
return @effectProfiles
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def effectProfileProcess()
|
|
62
|
+
if (@effectProfileProcess == nil)
|
|
63
|
+
@effectProfileProcess = ZiggeoEffectProfileProcess.new(self)
|
|
64
|
+
end
|
|
65
|
+
return @effectProfileProcess
|
|
66
|
+
end
|
|
67
|
+
|
|
50
68
|
def authtokens()
|
|
51
69
|
if (@authtokens == nil)
|
|
52
70
|
@authtokens = ZiggeoAuthtokens.new(self)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
class ZiggeoEffectProfileProcess
|
|
2
|
+
|
|
3
|
+
def initialize(application)
|
|
4
|
+
@application = application
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def index(effect_token_or_key, data = nil)
|
|
8
|
+
return @application.connect.getJSON('/effects/' + effect_token_or_key + '/process', data)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def get(effect_token_or_key, token_or_key)
|
|
12
|
+
return @application.connect.getJSON('/effects/' + effect_token_or_key + '/process/' + token_or_key + '')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def delete(effect_token_or_key, token_or_key)
|
|
16
|
+
return @application.connect.delete('/effects/' + effect_token_or_key + '/process/' + token_or_key + '')
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def create_filter_process(effect_token_or_key, data = nil)
|
|
20
|
+
return @application.connect.postJSON('/effects/' + effect_token_or_key + '/process/filter', data)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def create_watermark_process(effect_token_or_key, data = nil, file = nil)
|
|
24
|
+
return @application.connect.postJSON('/effects/' + effect_token_or_key + '/process/watermark', data, file)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class ZiggeoEffectProfiles
|
|
2
|
+
|
|
3
|
+
def initialize(application)
|
|
4
|
+
@application = application
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def create(data = nil)
|
|
8
|
+
return @application.connect.postJSON('/effects/', data)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def index(data = nil)
|
|
12
|
+
return @application.connect.getJSON('/effects/', data)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def get(token_or_key)
|
|
16
|
+
return @application.connect.getJSON('/effects/' + token_or_key + '')
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def delete(token_or_key)
|
|
20
|
+
return @application.connect.delete('/effects/' + token_or_key + '')
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
data/lib/classes/ZiggeoVideos.rb
CHANGED
|
@@ -24,6 +24,10 @@ class ZiggeoVideos
|
|
|
24
24
|
return @application.connect.postJSON('/videos/' + token_or_key + '/push', data)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
def apply_effect(token_or_key, data = nil)
|
|
28
|
+
return @application.connect.postJSON('/videos/' + token_or_key + '/effect', data)
|
|
29
|
+
end
|
|
30
|
+
|
|
27
31
|
def update(token_or_key, data = nil)
|
|
28
32
|
return @application.connect.postJSON('/videos/' + token_or_key + '', data)
|
|
29
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: Ziggeo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.19'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ziggeo, Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -49,6 +49,8 @@ files:
|
|
|
49
49
|
- lib/classes/ZiggeoAuthtokens.rb
|
|
50
50
|
- lib/classes/ZiggeoConfig.rb
|
|
51
51
|
- lib/classes/ZiggeoConnect.rb
|
|
52
|
+
- lib/classes/ZiggeoEffectProfileProcess.rb
|
|
53
|
+
- lib/classes/ZiggeoEffectProfiles.rb
|
|
52
54
|
- lib/classes/ZiggeoStreams.rb
|
|
53
55
|
- lib/classes/ZiggeoVideos.rb
|
|
54
56
|
- lib/Ziggeo.rb
|