grabzit 3.5.3 → 3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grabzit/client.rb +1 -1
- data/lib/grabzit/videooptions.rb +33 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a8a19888be59015aa66b1794e2bd0ccf7c395272c98e65b7156b4d921b7f8c6
|
4
|
+
data.tar.gz: 57d2ac4496d215398896a0e30162c71885e8b29e955a5fedfa9f279484367b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4947d9f5b5055806281a167944ab1d83ef3b9d14bb32204393f6d47a9a70cab5e5e88785c871eeaf31657ae59d7c4a50693ac41eef1d78a3d55640cbd31981
|
7
|
+
data.tar.gz: 6d735f28a68c328d3187ca76638660380777399e3bc4a4536adc850536e5bcd29e4a9174978bebbb946da5c936fae3d5816e00821eb91530a82ff19e03d1c668
|
data/lib/grabzit/client.rb
CHANGED
@@ -668,7 +668,7 @@ module GrabzIt
|
|
668
668
|
|
669
669
|
# This method will decrypt a encrypted capture, using the key you passed to the encryption key parameter.
|
670
670
|
#
|
671
|
-
# @param
|
671
|
+
# @param data [Array<Byte>] the encrypted bytes
|
672
672
|
# @param key [String] the encryption key
|
673
673
|
# @return [Array<Byte>] an array of decrypted bytes
|
674
674
|
def decrypt(data, key)
|
data/lib/grabzit/videooptions.rb
CHANGED
@@ -9,6 +9,8 @@ module GrabzIt
|
|
9
9
|
super()
|
10
10
|
@browserWidth = nil
|
11
11
|
@browserHeight = nil
|
12
|
+
@width = nil
|
13
|
+
@height = nil
|
12
14
|
@waitForElement = nil
|
13
15
|
@requestAs = 0
|
14
16
|
@customWaterMarkId = nil
|
@@ -46,6 +48,32 @@ module GrabzIt
|
|
46
48
|
def browserHeight=(value)
|
47
49
|
@browserHeight = value
|
48
50
|
end
|
51
|
+
|
52
|
+
# @return [Integer] get the width of the resulting video in pixels
|
53
|
+
def width
|
54
|
+
@width
|
55
|
+
end
|
56
|
+
|
57
|
+
# Set the width of the resulting video in pixels
|
58
|
+
#
|
59
|
+
# @param value [Integer] the width
|
60
|
+
# @return [void]
|
61
|
+
def width=(value)
|
62
|
+
@width = value
|
63
|
+
end
|
64
|
+
|
65
|
+
# @return [Integer] get the height of the resulting video in pixels
|
66
|
+
def height
|
67
|
+
@height
|
68
|
+
end
|
69
|
+
|
70
|
+
# Set the height of the resulting video in pixels
|
71
|
+
#
|
72
|
+
# @param value [Integer] the height
|
73
|
+
# @return [void]
|
74
|
+
def height=(value)
|
75
|
+
@height = value
|
76
|
+
end
|
49
77
|
|
50
78
|
# @return [String] get the CSS selector of the HTML element in the web page that must be visible before the capture is performed
|
51
79
|
def waitForElement
|
@@ -212,7 +240,9 @@ module GrabzIt
|
|
212
240
|
GrabzIt::Utility.b_to_str(@noCookieNotifications),
|
213
241
|
GrabzIt::Utility.nil_check(@clickElement),
|
214
242
|
GrabzIt::Utility.nil_float_check(@framesPerSecond),
|
215
|
-
GrabzIt::Utility.nil_int_check(@duration)
|
243
|
+
GrabzIt::Utility.nil_int_check(@duration),
|
244
|
+
GrabzIt::Utility.nil_int_check(@width),
|
245
|
+
GrabzIt::Utility.nil_int_check(@height))
|
216
246
|
|
217
247
|
return items.join("|")
|
218
248
|
end
|
@@ -233,6 +263,8 @@ module GrabzIt
|
|
233
263
|
params['start'] = GrabzIt::Utility.nil_int_check(@start)
|
234
264
|
params['fps'] = GrabzIt::Utility.nil_float_check(@framesPerSecond)
|
235
265
|
params['duration'] = GrabzIt::Utility.nil_int_check(@duration)
|
266
|
+
params['width'] = GrabzIt::Utility.nil_int_check(@width)
|
267
|
+
params['height'] = GrabzIt::Utility.nil_int_check(@height)
|
236
268
|
|
237
269
|
return params
|
238
270
|
end
|