@@ -6,6 +6,8 @@ class GrabzItVideoOptions extends GrabzItBaseOptions
66 private $ customWaterMarkId = null ;
77 private $ browserWidth = null ;
88 private $ browserHeight = null ;
9+ private $ width = null ;
10+ private $ height = null ;
911 private $ start = null ;
1012 private $ duration = null ;
1113 private $ framesPerSecond = null ;
@@ -96,6 +98,38 @@ public function getBrowserHeight()
9698 return $ this ->browserHeight ;
9799 }
98100
101+ /*
102+ Set the width of the resulting video in pixels
103+ */
104+ public function setWidth ($ value )
105+ {
106+ $ this ->width = $ value ;
107+ }
108+
109+ /*
110+ Get the width of the resulting video in pixels
111+ */
112+ public function getWidth ()
113+ {
114+ return $ this ->width ;
115+ }
116+
117+ /*
118+ Set the height of the resulting video in pixels
119+ */
120+ public function setHeight ($ value )
121+ {
122+ $ this ->height = $ value ;
123+ }
124+
125+ /*
126+ Get the height of the resulting video in pixels
127+ */
128+ public function getHeight ()
129+ {
130+ return $ this ->height ;
131+ }
132+
99133 /*
100134 Set a custom watermark to add to the video.
101135 */
@@ -226,16 +260,18 @@ public function _getSignatureString($applicationSecret, $callBackURL, $url = nul
226260 "| " .$ this ->nullToEmpty ($ this ->browserHeight )."| " .$ this ->nullToEmpty ($ this ->browserWidth )."| " .$ this ->nullToEmpty ($ this ->getCustomId ())."| " .
227261 $ this ->nullToEmpty ($ this ->customWaterMarkId )."| " .$ this ->nullToEmpty ($ this ->start )."| " .
228262 $ this ->nullToEmpty (intval ($ this ->requestAs ))."| " .$ this ->nullToEmpty ($ this ->getCountry ())."| " .$ this ->nullToEmpty ($ this ->getExportURL ())."| " .
229- $ this ->nullToEmpty ($ this ->waitForElement )."| " .$ this ->nullToEmpty ($ this ->getEncryptionKey ()."| " .
263+ $ this ->nullToEmpty ($ this ->waitForElement )."| " .$ this ->nullToEmpty ($ this ->getEncryptionKey ()) ."| " .
230264 $ this ->nullToEmpty (intval ($ this ->noAds ))."| " .$ this ->nullToEmpty ($ this ->post )."| " .$ this ->nullToEmpty ($ this ->getProxy ())."| " .$ this ->nullToEmpty ($ this ->address )."| " .$ this ->nullToEmpty (intval ($ this ->noCookieNotifications ))."| " .
231- $ this ->nullToEmpty ($ this ->clickElement )."| " .$ this ->nullToEmpty ($ this ->framesPerSecond )."| " .$ this ->nullToEmpty ($ this ->duration ));
265+ $ this ->nullToEmpty ($ this ->clickElement )."| " .$ this ->nullToEmpty ($ this ->framesPerSecond )."| " .$ this ->nullToEmpty ($ this ->duration ). " | " . $ this -> nullToEmpty ( $ this -> width ). " | " . $ this -> nullToEmpty ( $ this -> height );
232266 }
233267
234268 public function _getParameters ($ applicationKey , $ sig , $ callBackURL , $ dataName , $ dataValue )
235269 {
236270 $ params = $ this ->createParameters ($ applicationKey , $ sig , $ callBackURL , $ dataName , $ dataValue );
237271 $ params ['bwidth ' ] = $ this ->nullToEmpty ($ this ->browserWidth );
238272 $ params ['bheight ' ] = $ this ->nullToEmpty ($ this ->browserHeight );
273+ $ params ['width ' ] = $ this ->nullToEmpty ($ this ->width );
274+ $ params ['height ' ] = $ this ->nullToEmpty ($ this ->height );
239275 $ params ['duration ' ] = $ this ->nullToEmpty ($ this ->duration );
240276 $ params ['waitfor ' ] = $ this ->nullToEmpty ($ this ->waitForElement );
241277 $ params ['customwatermarkid ' ] = $ this ->nullToEmpty ($ this ->customWaterMarkId );
0 commit comments