mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 00:05:15 +02:00
Make jpeg quality configurable.
This commit is contained in:
10
lib/cli.js
10
lib/cli.js
@@ -64,6 +64,10 @@ program
|
||||
, 'screen WebSocket URL pattern'
|
||||
, String
|
||||
, 'ws://${publicIp}:${publicPort}')
|
||||
.option('--screen-jpeg-quality <quality>'
|
||||
, 'screen JPEG quality'
|
||||
, Number
|
||||
, process.env.SCREEN_JPEG_QUALITY || 80)
|
||||
.option('--connect-url-pattern <pattern>'
|
||||
, 'adb connect URL pattern'
|
||||
, String
|
||||
@@ -113,6 +117,7 @@ program
|
||||
, '--adb-host', options.adbHost
|
||||
, '--adb-port', options.adbPort
|
||||
, '--screen-ws-url-pattern', options.screenWsUrlPattern
|
||||
, '--screen-jpeg-quality', options.screenJpegQuality
|
||||
, '--connect-url-pattern', options.connectUrlPattern
|
||||
, '--heartbeat-interval', options.heartbeatInterval
|
||||
, '--vnc-initial-size', options.vncInitialSize.join('x')
|
||||
@@ -182,6 +187,10 @@ program
|
||||
, 'screen WebSocket URL pattern'
|
||||
, String
|
||||
, 'ws://${publicIp}:${publicPort}')
|
||||
.option('--screen-jpeg-quality <quality>'
|
||||
, 'screen JPEG quality'
|
||||
, Number
|
||||
, process.env.SCREEN_JPEG_QUALITY || 80)
|
||||
.option('--heartbeat-interval <ms>'
|
||||
, 'heartbeat interval'
|
||||
, Number
|
||||
@@ -228,6 +237,7 @@ program
|
||||
, adbHost: options.adbHost
|
||||
, adbPort: options.adbPort
|
||||
, screenWsUrlPattern: options.screenWsUrlPattern
|
||||
, screenJpegQuality: options.screenJpegQuality
|
||||
, screenPort: options.screenPort
|
||||
, connectUrlPattern: options.connectUrlPattern
|
||||
, connectPort: options.connectPort
|
||||
|
||||
Reference in New Issue
Block a user